This commit is contained in:
2025-12-17 09:55:25 +03:30
parent a2ef48e1c9
commit abc9185285
5 changed files with 15 additions and 15 deletions
+3 -3
View File
@@ -19,7 +19,7 @@ export class DeliveryMethodsSeeder {
const delivery = em.create(Delivery, {
restaurant,
method: methodData.method,
title: methodData.title,
name: methodData.name,
description: methodData.description,
deliveryFee: methodData.deliveryFee,
minOrderPrice: methodData.minOrderPrice,
@@ -33,13 +33,13 @@ export class DeliveryMethodsSeeder {
} else {
// Update existing delivery method if needed
if (
existing.title !== methodData.title ||
existing.name !== methodData.name ||
existing.description !== methodData.description ||
existing.deliveryFee !== methodData.deliveryFee ||
existing.minOrderPrice !== methodData.minOrderPrice ||
existing.order !== methodData.order
) {
existing.title = methodData.title;
existing.name = methodData.name;
existing.description = methodData.description;
existing.deliveryFee = methodData.deliveryFee;
existing.minOrderPrice = methodData.minOrderPrice;