This commit is contained in:
2025-12-29 11:21:31 +03:30
parent f6e52d4522
commit 4da95844a2
3 changed files with 817 additions and 817 deletions
+2 -2
View File
@@ -44,9 +44,9 @@ export class AuthService {
const key = isAdmin ? this.adminOtpKey(slug, normalizedPhone) : this.userOtpKey(slug, normalizedPhone); const key = isAdmin ? this.adminOtpKey(slug, normalizedPhone) : this.userOtpKey(slug, normalizedPhone);
await this.cacheService.set(key, code, this.OTP_EXPIRATION_TIME); await this.cacheService.set(key, code, this.OTP_EXPIRATION_TIME);
await this.smsService.sendotp(normalizedPhone, code); // await this.smsService.sendotp(normalizedPhone, code);
return { code: null }; return { code };
} }
async verifyOtp(phone: string, slug: string, code: string) { async verifyOtp(phone: string, slug: string, code: string) {
+1 -1
View File
@@ -18,7 +18,7 @@ export class AdminsSeeder {
const restaurant = adminData.restaurantSlug ? restaurantsMap.get(adminData.restaurantSlug) : null; const restaurant = adminData.restaurantSlug ? restaurantsMap.get(adminData.restaurantSlug) : null;
// For restaurant role, restaurant is required // For restaurant role, restaurant is required
if (adminData.roleName === 'restaurant' && !restaurant) continue; if (!restaurant) continue;
const admin = em.create(Admin, { const admin = em.create(Admin, {
phone: normalizePhone(adminData.phone), phone: normalizePhone(adminData.phone),
File diff suppressed because it is too large Load Diff