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 {