mirror of
https://github.com/SyncrowIOT/backend.git
synced 2025-07-15 10:25:23 +00:00
Add Mailtrap disable and enable template UUIDs and update email service
This commit is contained in:
@ -114,7 +114,7 @@ export class InviteUserService {
|
||||
|
||||
await Promise.all(spacePromises);
|
||||
await this.emailService.sendEmailWithInvitationTemplate(email, {
|
||||
name: firstName + ' ' + lastName,
|
||||
name: firstName,
|
||||
invitationCode,
|
||||
role: roleType,
|
||||
spacesList: spaceNamesString,
|
||||
@ -524,7 +524,11 @@ export class InviteUserService {
|
||||
HttpStatus.BAD_REQUEST,
|
||||
);
|
||||
}
|
||||
|
||||
await this.emailService.sendEmailWithDisableOrEnableTemplate(
|
||||
userData.email,
|
||||
userData.firstName,
|
||||
disable,
|
||||
);
|
||||
await queryRunner.commitTransaction();
|
||||
|
||||
return new SuccessResponseDto({
|
||||
|
Reference in New Issue
Block a user