Describe the bug
Incorrect method call for fetching user with email on line number 84
|
public generateOtp = async (otpDetails: any): Promise<boolean> => { |
|
|
|
var person: PersonDetailsDto = null; |
|
|
|
if (otpDetails.Phone) { |
|
person = await this._personRepo.getPersonWithPhone(otpDetails.Phone); |
|
if (person == null) { |
|
let message = 'User does not exist with phone(' + otpDetails.Phone + ')'; |
|
throw new ApiError(404, message); |
|
} |
|
} else if (otpDetails.Email) { |
|
person = await this._personRepo.getPersonWithPhone(otpDetails.Email); |
|
if (person == null) { |
|
let message = 'User does not exist with email(' + otpDetails.Email + ')'; |
|
throw new ApiError(404, message); |
|
} |
|
} |
To Reproduce
Expected behavior
code should should be
person = await this._personRepo.getPersonWithEmail(otpDetails.Email);
Screenshots
Desktop (please complete the following information):
Smartphone (please complete the following information):
Additional context
Describe the bug
Incorrect method call for fetching user with email on line number 84
reancare-service/src/services/user.service.ts
Lines 73 to 89 in 73d97d6
To Reproduce
Expected behavior
code should should be
Screenshots
Desktop (please complete the following information):
Smartphone (please complete the following information):
Additional context