Fix race condition in POST /api/v1/push/subscription (#30166)
		
	This commit is contained in:
		
					parent
					
						
							
								dbaa4ed891
							
						
					
				
			
			
				commit
				
					
						8e4fea77e3
					
				
			
		
					 2 changed files with 23 additions and 12 deletions
				
			
		|  | @ -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 | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue