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
1 changed files with 1 additions and 1 deletions

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,