ignorar las notificaciones fallidas

This commit is contained in:
fauno 2019-08-14 21:49:20 -03:00
parent 1990828f59
commit b0ccf4f688
No known key found for this signature in database
GPG key ID: 456032D717A4CD9C

View file

@ -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