update restuarant shipment
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user