mirror of
				https://github.com/Unleash/unleash.git
				synced 2025-10-27 11:02:16 +01:00 
			
		
		
		
	fix: handle concurrent service account updates (#5349)
This commit is contained in:
		
							parent
							
								
									f3df3a31bf
								
							
						
					
					
						commit
						02da9b1d34
					
				| @ -468,11 +468,14 @@ export class AccessStore implements IAccessStore { | ||||
|         roleId: number, | ||||
|         projectId?: string, | ||||
|     ): Promise<void> { | ||||
|         return this.db(T.ROLE_USER).insert({ | ||||
|             user_id: userId, | ||||
|             role_id: roleId, | ||||
|             project: projectId, | ||||
|         }); | ||||
|         await this.db(T.ROLE_USER) | ||||
|             .insert({ | ||||
|                 user_id: userId, | ||||
|                 role_id: roleId, | ||||
|                 project: projectId, | ||||
|             }) | ||||
|             .onConflict(['user_id', 'role_id', 'project']) | ||||
|             .ignore(); | ||||
|     } | ||||
| 
 | ||||
|     async removeUserFromRole( | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user