Eliminar suscripciones webpush vencidas
This commit is contained in:
parent
f6bd9a4dfa
commit
be2540c80c
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue