From 3e7c6ada170e3385d629f0b15cd9615129ba964a Mon Sep 17 00:00:00 2001 From: fauno Date: Wed, 15 Apr 2020 16:34:58 -0300 Subject: [PATCH] ignorar suscripciones vencidas --- app/jobs/webpush_job.rb | 2 ++ 1 file changed, 2 insertions(+) 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