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