diff --git a/app/controllers/establishment.controller.js b/app/controllers/establishment.controller.js index 2830667..156a1f3 100644 --- a/app/controllers/establishment.controller.js +++ b/app/controllers/establishment.controller.js @@ -141,12 +141,12 @@ exports.createEstablishment = async (req, res) => { message: "Missing required field: Emirate", }); } - if (!establishment_city_town_id) { - return res.status(400).send({ - status: "failed", - message: "Missing required field: city/town", - }); - } + // if (!establishment_city_town_id) { + // return res.status(400).send({ + // status: "failed", + // message: "Missing required field: city/town", + // }); + // } if (!isic_code) { return res.status(400).send({ status: "failed", @@ -669,12 +669,12 @@ exports.updateEstablishment = async (req, res) => { } // city / town - if (establishment_city_town_id !== undefined && !establishment_city_town_id) { - return res.status(400).json({ - status: "failed", - message: "Missing required field: City/Town", - }); - } + // if (establishment_city_town_id !== undefined && !establishment_city_town_id) { + // return res.status(400).json({ + // status: "failed", + // message: "Missing required field: City/Town", + // }); + // } // industry code production if ( isic_code!== undefined && !isic_code) {