mirror of
https://github.com/lunaisnotaboy/mastodon.git
synced 2024-12-22 13:17:13 +00:00
Use update method to update session in WebPushNotificationWorker (#4235)
This commit is contained in:
parent
1d2616b79b
commit
68941d4dfa
|
@ -17,8 +17,7 @@ class WebPushNotificationWorker
|
|||
rescue Webpush::InvalidSubscription, Webpush::ExpiredSubscription
|
||||
# Subscription expiration is not currently implemented in any browser
|
||||
session.web_push_subscription.destroy!
|
||||
session.web_push_subscription = nil
|
||||
session.save!
|
||||
session.update!(web_push_subscription: nil)
|
||||
rescue Webpush::PayloadTooLarge => e
|
||||
Rails.logger.error(e)
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue