ignorar suscripciones vencidas
This commit is contained in:
parent
c29206fd79
commit
3e7c6ada17
1 changed files with 2 additions and 0 deletions
|
@ -20,6 +20,8 @@ class WebpushJob < ApplicationJob
|
|||
subscription.payload_send(payload: payload,
|
||||
urgency: urgency,
|
||||
ttl: ttl)
|
||||
rescue Webpush::ExpiredSubscription
|
||||
next
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue