forked from Yara724/api
Fixed insurer
This commit is contained in:
@@ -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),
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user