chore: add user get profile and check validity route

This commit is contained in:
mahyargdz
2025-01-22 09:50:03 +03:30
parent 7431dad85f
commit 72b6cb35a0
39 changed files with 874 additions and 127 deletions
@@ -11,8 +11,14 @@ export class UserRepository extends Repository<User> {
}
async findOneWithEmail(email: string): Promise<User | null> {
return await this.findOneBy({
return this.findOneBy({
email,
});
}
async findOneWithPhone(phone: string): Promise<User | null> {
return this.findOneBy({
phone,
});
}
}