From be2540c80cfcb3e2b4b543117c5b5526a9b456bb Mon Sep 17 00:00:00 2001 From: fauno Date: Mon, 22 Jun 2020 16:08:02 -0300 Subject: [PATCH] Eliminar suscripciones webpush vencidas --- app/jobs/webpush_job.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/jobs/webpush_job.rb b/app/jobs/webpush_job.rb index a5763de..c79683e 100644 --- a/app/jobs/webpush_job.rb +++ b/app/jobs/webpush_job.rb @@ -21,7 +21,7 @@ class WebpushJob < ApplicationJob urgency: urgency, ttl: ttl) rescue Webpush::ExpiredSubscription - next + subscription.destroy end end end