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
+1 -1
View File
@@ -18,7 +18,7 @@ export class AdminsSeeder {
const restaurant = adminData.restaurantSlug ? restaurantsMap.get(adminData.restaurantSlug) : null;
// For restaurant role, restaurant is required
if (adminData.roleName === 'restaurant' && !restaurant) continue;
if (!restaurant) continue;
const admin = em.create(Admin, {
phone: normalizePhone(adminData.phone),
File diff suppressed because it is too large Load Diff