0
0
Fork 0

Fix race condition in POST /api/v1/push/subscription (#30166)

This commit is contained in:
Claire 2024-05-06 14:41:14 +02:00 committed by GitHub
parent dbaa4ed891
commit 8e4fea77e3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 23 additions and 12 deletions

View file

@ -6,6 +6,8 @@ module AccessTokenExtension
included do
include Redisable
has_many :web_push_subscriptions, class_name: 'Web::PushSubscription', inverse_of: :access_token
after_commit :push_to_streaming_api
end