mirror of
https://github.com/SyncrowIOT/backend.git
synced 2026-10-23 11:47:55 +00:00
Update email template data in sendEditUserEmailWithTemplate
This commit is contained in:
@@ -374,10 +374,10 @@ export class InviteUserService {
|
||||
oldFullName,
|
||||
newFullName,
|
||||
);
|
||||
await this.emailService.sendEditUserEmailWithTemplate(
|
||||
userOldData.email,
|
||||
emailMessage,
|
||||
);
|
||||
await this.emailService.sendEditUserEmailWithTemplate(userOldData.email, {
|
||||
name: dto.firstName || userOldData.firstName,
|
||||
...emailMessage,
|
||||
});
|
||||
|
||||
// Proceed with other updates (e.g., roles, names, etc.)
|
||||
await queryRunner.commitTransaction();
|
||||
|
||||
Reference in New Issue
Block a user