update restuarant shipment
This commit is contained in:
@@ -115,7 +115,8 @@ export class RestaurantShipmentMethodService {
|
|||||||
// Check if the new relationship already exists
|
// Check if the new relationship already exists
|
||||||
const existing = await this.restaurantShipmentMethodRepository.findOne({
|
const existing = await this.restaurantShipmentMethodRepository.findOne({
|
||||||
restaurant: { id: restId },
|
restaurant: { id: restId },
|
||||||
shipmentMethod: { id: { $ne: restaurantShipmentMethodId } },
|
shipmentMethod: { id: updateDto.shipmentMethodId },
|
||||||
|
id: { $ne: restaurantShipmentMethodId },
|
||||||
});
|
});
|
||||||
|
|
||||||
if (existing) {
|
if (existing) {
|
||||||
|
|||||||
Reference in New Issue
Block a user