City town id required removed : GWM

This commit is contained in:
Gowtham M 2026-02-11 12:32:24 +05:30
parent f3823da3bd
commit 443b8cab51

View File

@ -141,12 +141,12 @@ exports.createEstablishment = async (req, res) => {
message: "Missing required field: Emirate", message: "Missing required field: Emirate",
}); });
} }
if (!establishment_city_town_id) { // if (!establishment_city_town_id) {
return res.status(400).send({ // return res.status(400).send({
status: "failed", // status: "failed",
message: "Missing required field: city/town", // message: "Missing required field: city/town",
}); // });
} // }
if (!isic_code) { if (!isic_code) {
return res.status(400).send({ return res.status(400).send({
status: "failed", status: "failed",
@ -669,12 +669,12 @@ exports.updateEstablishment = async (req, res) => {
} }
// city / town // city / town
if (establishment_city_town_id !== undefined && !establishment_city_town_id) { // if (establishment_city_town_id !== undefined && !establishment_city_town_id) {
return res.status(400).json({ // return res.status(400).json({
status: "failed", // status: "failed",
message: "Missing required field: City/Town", // message: "Missing required field: City/Town",
}); // });
} // }
// industry code production // industry code production
if ( isic_code!== undefined && !isic_code) { if ( isic_code!== undefined && !isic_code) {