From b8d77d6189243898380eec803fc8bf1271f1fff6 Mon Sep 17 00:00:00 2001 From: Jaedsonn Date: Sat, 31 Jan 2026 13:09:35 -0300 Subject: [PATCH] fix: remove unnecessary await from email service calls in AuthService --- src/modules/Auth/auth.service.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/Auth/auth.service.ts b/src/modules/Auth/auth.service.ts index 773622e..f4f0b91 100644 --- a/src/modules/Auth/auth.service.ts +++ b/src/modules/Auth/auth.service.ts @@ -23,7 +23,7 @@ export class AuthService { } const password_digest = await hashPassword(createUserDTO.password); const user = await this.authRepository.save({...createUserDTO, password: password_digest }); - await this.emailService.send({ + this.emailService.send({ to: user.email, subject: "Welcome to Payment Records", from: process.env.EMAIL_USER, @@ -100,7 +100,7 @@ export class AuthService { ); try { - await this.emailService.send({ + this.emailService.send({ to: user.email, subject: "Password Reset", from: process.env.EMAIL_USER,