ignorar suscripciones vencidas

This commit is contained in:
fauno 2020-04-15 16:34:58 -03:00
parent c29206fd79
commit 3e7c6ada17

View file

@ -20,6 +20,8 @@ class WebpushJob < ApplicationJob
subscription.payload_send(payload: payload, subscription.payload_send(payload: payload,
urgency: urgency, urgency: urgency,
ttl: ttl) ttl: ttl)
rescue Webpush::ExpiredSubscription
next
end end
end end
end end