mirror of
https://github.com/SyncrowIOT/backend.git
synced 2025-07-15 10:25:23 +00:00
Refactor email sending method name to improve clarity
This commit is contained in:
@ -19,7 +19,7 @@ export class EmailService {
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
async sendOTPEmail(
|
async sendEmail(
|
||||||
email: string,
|
email: string,
|
||||||
subject: string,
|
subject: string,
|
||||||
message: string,
|
message: string,
|
||||||
|
@ -136,7 +136,7 @@ export class UserAuthService {
|
|||||||
});
|
});
|
||||||
const subject = 'OTP send successfully';
|
const subject = 'OTP send successfully';
|
||||||
const message = `Your OTP code is ${otpCode}`;
|
const message = `Your OTP code is ${otpCode}`;
|
||||||
this.emailService.sendOTPEmail(data.email, subject, message);
|
this.emailService.sendEmail(data.email, subject, message);
|
||||||
return otpCode;
|
return otpCode;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user