mirror of
https://github.com/SyncrowIOT/backend.git
synced 2025-07-16 02:36:19 +00:00
Merge pull request #242 from SyncrowIOT/fix-update-invted-user-role
Update user role in repository when inviting user
This commit is contained in:
@ -509,7 +509,12 @@ export class InviteUserService {
|
||||
roleType: { uuid: roleUuid },
|
||||
},
|
||||
);
|
||||
|
||||
await this.userRepository.update(
|
||||
{ uuid: userData.user.uuid },
|
||||
{
|
||||
roleType: { uuid: roleUuid },
|
||||
},
|
||||
);
|
||||
// Disassociate the user from all current spaces
|
||||
const disassociatePromises = userData.user.userSpaces.map((userSpace) =>
|
||||
this.spaceUserService
|
||||
|
Reference in New Issue
Block a user