From b0ccf4f688345c72c9c2d147e5d14d0a189fb64f Mon Sep 17 00:00:00 2001 From: fauno Date: Wed, 14 Aug 2019 21:49:20 -0300 Subject: [PATCH] ignorar las notificaciones fallidas --- app/models/webpush_subscription.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/models/webpush_subscription.rb b/app/models/webpush_subscription.rb index cb31b02..8aa60a7 100644 --- a/app/models/webpush_subscription.rb +++ b/app/models/webpush_subscription.rb @@ -21,6 +21,8 @@ class WebpushSubscription < ApplicationRecord ttl: ttl.to_i, urgency: normalize_urgency(urgency), message: payload.to_json ) + rescue Webpush::Unauthorized + Rails.logger.info "#{id} no autorizada" end private