chore: change the email service

This commit is contained in:
mahyargdz
2025-05-04 16:46:34 +03:30
parent c3ad2a1733
commit d35ba6c331
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -9,7 +9,7 @@ export function mailerConfig(): MailerAsyncOptions {
transport: {
host: configService.getOrThrow<string>("SMTP_HOST"),
port: configService.getOrThrow<number>("SMTP_PORT"),
secure: false,
secure: true,
auth: {
user: configService.getOrThrow<string>("SMTP_USER"),
pass: configService.getOrThrow<string>("SMTP_PASS"),
+1 -1
View File
@@ -189,7 +189,7 @@ export class AuthService {
const tokens = await this.tokensService.generateTokens(user);
await this.notificationQueue.addLoginNotification(user.id, { userPhone: user.phone });
await this.notificationQueue.addLoginNotification(user.id, { userPhone: user.phone, userEmail: user.email });
return {
message: AuthMessage.LOGIN_SUCCESS,
...tokens,