mirror of
https://github.com/SyncrowIOT/backend.git
synced 2025-07-17 11:15:14 +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 },
|
roleType: { uuid: roleUuid },
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
|
await this.userRepository.update(
|
||||||
|
{ uuid: userData.user.uuid },
|
||||||
|
{
|
||||||
|
roleType: { uuid: roleUuid },
|
||||||
|
},
|
||||||
|
);
|
||||||
// Disassociate the user from all current spaces
|
// Disassociate the user from all current spaces
|
||||||
const disassociatePromises = userData.user.userSpaces.map((userSpace) =>
|
const disassociatePromises = userData.user.userSpaces.map((userSpace) =>
|
||||||
this.spaceUserService
|
this.spaceUserService
|
||||||
|
Reference in New Issue
Block a user