FIX: Ensure push_url exists before making push notification API call

This commit is contained in:
Penar Musaraj 2019-10-04 11:52:10 -04:00
parent 46d12c5ad3
commit 77643931bc

View File

@ -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' }