FIX: Ensure push_url exists before making push notification API call
This commit is contained in:
parent
46d12c5ad3
commit
77643931bc
|
@ -20,6 +20,8 @@ module Jobs
|
|||
notification.merge(client_id: client_id)
|
||||
end
|
||||
|
||||
next unless push_url
|
||||
|
||||
result = Excon.post(push_url,
|
||||
body: payload.merge(notifications: notifications).to_json,
|
||||
headers: { 'Content-Type' => 'application/json', 'Accept' => 'application/json' }
|
||||
|
|
Loading…
Reference in New Issue