This commit is contained in:
2025-12-06 23:09:01 +03:30
parent 6c62c8badc
commit 7567e00f8a
2 changed files with 5 additions and 10 deletions
@@ -15,6 +15,7 @@ export class AdminRepository extends EntityRepository<Admin> {
}
async findByPhoneAndRestaurantSlug(phone: string, slug: string): Promise<Admin | null> {
console.log('phone', phone);
const normalizedPhone = normalizePhone(phone);
// First, find the restaurant by slug using the same repository as auth service
const restaurant = await this.restRepository.findOne({ slug });