Eliminar suscripciones webpush vencidas

This commit is contained in:
fauno 2020-06-22 16:08:02 -03:00
parent f6bd9a4dfa
commit be2540c80c

View file

@ -21,7 +21,7 @@ class WebpushJob < ApplicationJob
urgency: urgency, urgency: urgency,
ttl: ttl) ttl: ttl)
rescue Webpush::ExpiredSubscription rescue Webpush::ExpiredSubscription
next subscription.destroy
end end
end end
end end