FIX: Do not make notification API call if push_url is blank

Followup to 77643931bc
This commit is contained in:
Penar Musaraj 2019-10-16 10:59:06 -04:00
parent 1c4baadc49
commit e4424d7c2e

View File

@ -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,