1
0
forked from Yara724/api

Fixed insurer

This commit is contained in:
SepehrYahyaee
2026-06-07 16:10:42 +03:30
parent 34142942e5
commit 249c359898
6 changed files with 184 additions and 121 deletions

View File

@@ -117,6 +117,7 @@ export class UserAuthService {
if (!userExist) {
await this.smsSender(otp, canonicalMobile);
// console.log(`OTP for ${canonicalMobile}: ${otp}`);
const newUser = await this.userDbService.createUser({
mobile: canonicalMobile,
username: canonicalMobile,
@@ -144,6 +145,7 @@ export class UserAuthService {
}
await this.smsSender(otp, canonicalMobile);
// console.log(`OTP for ${canonicalMobile}: ${otp}`);
await this.userDbService.findOneAndUpdate(
buildUserLookupByPhone(canonicalMobile),
{