mirror of
https://github.com/SyncrowIOT/backend.git
synced 2025-07-10 15:17:41 +00:00
Compare commits
1 Commits
SP-1736-fe
...
refactor/a
Author | SHA1 | Date | |
---|---|---|---|
7ea53feddc |
@ -111,7 +111,6 @@ export class InviteUserService {
|
||||
});
|
||||
|
||||
const invitedUser = await queryRunner.manager.save(inviteUser);
|
||||
const invitedRoleType = await this.getRoleTypeByUuid(roleUuid);
|
||||
|
||||
// Link user to spaces
|
||||
const spacePromises = validSpaces.map(async (space) => {
|
||||
@ -129,7 +128,7 @@ export class InviteUserService {
|
||||
await this.emailService.sendEmailWithInvitationTemplate(email, {
|
||||
name: firstName,
|
||||
invitationCode,
|
||||
role: invitedRoleType.replace(/_/g, ' '),
|
||||
role: roleType,
|
||||
spacesList: spaceNames,
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user