mirror of
https://github.com/SyncrowIOT/backend.git
synced 2025-07-15 02:15:21 +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,
|
||||
subject: string,
|
||||
message: string,
|
||||
|
@ -136,7 +136,7 @@ export class UserAuthService {
|
||||
});
|
||||
const subject = 'OTP send successfully';
|
||||
const message = `Your OTP code is ${otpCode}`;
|
||||
this.emailService.sendOTPEmail(data.email, subject, message);
|
||||
this.emailService.sendEmail(data.email, subject, message);
|
||||
return otpCode;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user