fix: auth
This commit is contained in:
@@ -71,10 +71,10 @@ export class AuthService {
|
|||||||
|
|
||||||
const user = await this.usersService.createUser(completeRegistrationDto, hashedPassword, business, entityManager);
|
const user = await this.usersService.createUser(completeRegistrationDto, hashedPassword, business, entityManager);
|
||||||
|
|
||||||
await this.otpService.delOtpFormCache(phone, "REGISTER");
|
|
||||||
|
|
||||||
const tokens = await this.tokensService.generateTokens(user, entityManager);
|
const tokens = await this.tokensService.generateTokens(user, entityManager);
|
||||||
|
|
||||||
|
await this.otpService.delOtpFormCache(phone, "REGISTER");
|
||||||
|
|
||||||
await entityManager.commit();
|
await entityManager.commit();
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|||||||
Reference in New Issue
Block a user