diff --git a/app/jobs/webpush_job.rb b/app/jobs/webpush_job.rb index 07660cd..a5763de 100644 --- a/app/jobs/webpush_job.rb +++ b/app/jobs/webpush_job.rb @@ -20,6 +20,8 @@ class WebpushJob < ApplicationJob subscription.payload_send(payload: payload, urgency: urgency, ttl: ttl) + rescue Webpush::ExpiredSubscription + next end end end