up
This commit is contained in:
@@ -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
Reference in New Issue
Block a user