FIX: Do not make notification API call if push_url is blank
Followup to 77643931bc
This commit is contained in:
parent
1c4baadc49
commit
e4424d7c2e
|
@ -20,7 +20,7 @@ module Jobs
|
|||
notification.merge(client_id: client_id)
|
||||
end
|
||||
|
||||
next unless push_url
|
||||
next unless push_url.present?
|
||||
|
||||
result = Excon.post(push_url,
|
||||
body: payload.merge(notifications: notifications).to_json,
|
||||
|
|
Loading…
Reference in New Issue