Refactor email sending method name to improve clarity

This commit is contained in:
faris Aljohari
2024-08-11 19:45:11 +03:00
parent 3a5c518d11
commit 613f9de731
2 changed files with 2 additions and 2 deletions

View File

@ -19,7 +19,7 @@ export class EmailService {
}; };
} }
async sendOTPEmail( async sendEmail(
email: string, email: string,
subject: string, subject: string,
message: string, message: string,

View File

@ -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;
} }