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",
});
}
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) {