update establishment issue
This commit is contained in:
parent
4c65cece11
commit
b762496709
@ -587,17 +587,20 @@ exports.updateEstablishment = async (req, res) => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
const { id } = req.params;
|
const { id } = req.params;
|
||||||
const {
|
|
||||||
establishment_products,
|
const { establishment_products, establishment_user, ...estData } = req.body;
|
||||||
establishment_user,
|
logger.error(`Error updating establishment: ${ req.body}`);
|
||||||
establishment_code,
|
// const {
|
||||||
factory_name,
|
// establishment_products,
|
||||||
establishment_emirate_id,
|
// establishment_user,
|
||||||
establishment_city_town_id,
|
// establishment_code,
|
||||||
industry_code_production,
|
// factory_name,
|
||||||
corporate_email,
|
// establishment_emirate_id,
|
||||||
...estData
|
// establishment_city_town_id,
|
||||||
} = req.body;
|
// industry_code_production,
|
||||||
|
// corporate_email,
|
||||||
|
// ...estData
|
||||||
|
// } = req.body;
|
||||||
const user = await EstablishmentUser.findOne({where:{establishment_id:id}});
|
const user = await EstablishmentUser.findOne({where:{establishment_id:id}});
|
||||||
|
|
||||||
const resolveActionDoneBy = (item) => {
|
const resolveActionDoneBy = (item) => {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user