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

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

Followup to 77643931bcf89bef317c5b6236a81ac2eafae323

diff --git a/app/jobs/regular/push_notification.rb b/app/jobs/regular/push_notification.rb
index 415152422e..6773bf4585 100644
--- a/app/jobs/regular/push_notification.rb
+++ b/app/jobs/regular/push_notification.rb
@@ -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,

GitHub sha: e4424d7c

2 Likes