From d6650bafd9788c11fc78ad19a4cf3d7e88a47187 Mon Sep 17 00:00:00 2001 From: mahyargdz Date: Sun, 1 Jun 2025 10:35:35 +0330 Subject: [PATCH] fix: auth --- src/modules/auth/providers/auth.service.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/auth/providers/auth.service.ts b/src/modules/auth/providers/auth.service.ts index 3cb1411..37707b9 100755 --- a/src/modules/auth/providers/auth.service.ts +++ b/src/modules/auth/providers/auth.service.ts @@ -71,10 +71,10 @@ export class AuthService { const user = await this.usersService.createUser(completeRegistrationDto, hashedPassword, business, entityManager); - await this.otpService.delOtpFormCache(phone, "REGISTER"); - const tokens = await this.tokensService.generateTokens(user, entityManager); + await this.otpService.delOtpFormCache(phone, "REGISTER"); + await entityManager.commit(); return {