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 {
|
||||
establishment_products,
|
||||
establishment_user,
|
||||
establishment_code,
|
||||
factory_name,
|
||||
establishment_emirate_id,
|
||||
establishment_city_town_id,
|
||||
industry_code_production,
|
||||
corporate_email,
|
||||
...estData
|
||||
} = req.body;
|
||||
|
||||
const { establishment_products, establishment_user, ...estData } = req.body;
|
||||
logger.error(`Error updating establishment: ${ req.body}`);
|
||||
// const {
|
||||
// establishment_products,
|
||||
// establishment_user,
|
||||
// establishment_code,
|
||||
// factory_name,
|
||||
// establishment_emirate_id,
|
||||
// establishment_city_town_id,
|
||||
// industry_code_production,
|
||||
// corporate_email,
|
||||
// ...estData
|
||||
// } = req.body;
|
||||
const user = await EstablishmentUser.findOne({where:{establishment_id:id}});
|
||||
|
||||
const resolveActionDoneBy = (item) => {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user