update restuarant shipment

This commit is contained in:
2025-11-23 16:56:41 +03:30
parent 0d72333c9c
commit 72c93e637c
@@ -115,7 +115,8 @@ export class RestaurantShipmentMethodService {
// Check if the new relationship already exists
const existing = await this.restaurantShipmentMethodRepository.findOne({
restaurant: { id: restId },
shipmentMethod: { id: { $ne: restaurantShipmentMethodId } },
shipmentMethod: { id: updateDto.shipmentMethodId },
id: { $ne: restaurantShipmentMethodId },
});
if (existing) {