mirror of
https://github.com/SyncrowIOT/backend.git
synced 2025-11-27 08:24:55 +00:00
added default region in otp
This commit is contained in:
@ -130,9 +130,13 @@ export class UserAuthService {
|
||||
threeDaysAgo.setDate(threeDaysAgo.getDate() - 3);
|
||||
const userExists = await this.userRepository.exists({
|
||||
where: {
|
||||
region: {
|
||||
regionName: data.regionName,
|
||||
},
|
||||
region: data.regionUuid
|
||||
? {
|
||||
uuid: data.regionUuid,
|
||||
}
|
||||
: {
|
||||
regionName: 'United Arab Emirates',
|
||||
},
|
||||
email: data.email,
|
||||
isUserVerified: true,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user