fix: getUserVerifiedPhoneNumber calls phone lookup instead of email (#29458)

getUserVerifiedPhoneNumber incorrectly called getUserVerifiedEmail
on the repository, causing verified phone numbers to never be found.

Fixes #29450

Co-authored-by: Bandhan Majumder <133476557+bandhan-majumder@users.noreply.github.com>
This commit is contained in:
H P
2026-06-12 13:26:28 +05:30
committed by GitHub
co-authored by Bandhan Majumder
parent 4026669e68
commit ca03f007df
@@ -102,7 +102,7 @@ export class VerifiedResourcesService {
}
async getUserVerifiedPhoneNumber(userId: number, phoneNumber: string) {
return this.usersVerifiedResourcesRepository.getUserVerifiedEmail(userId, phoneNumber);
return this.usersVerifiedResourcesRepository.getUserVerifiedPhoneNumber(userId, phoneNumber);
}
async getTeamVerifiedPhoneNumber(userId: number, phoneNumber: string, teamId: number) {