excel:GWM
This commit is contained in:
parent
5a998b32d4
commit
74f3459e65
@ -93,9 +93,10 @@ exports.ImportExcelData = async (req, res , filename) =>
|
||||
});
|
||||
});
|
||||
FinancialsDataUpdate.then(async(data)=>
|
||||
{
|
||||
data.forEach(async(value, key , array)=>{
|
||||
var entity_id = value[0].entity_id;
|
||||
{
|
||||
const filteredData = data.filter(subArray => subArray.length > 0);
|
||||
filteredData.forEach(async(value, key , array)=>{
|
||||
var entity_id = value[0]['entity_id'];
|
||||
await Financials.update( {manual_data_status:1},{where:{id:entity_id}} ).catch(err=>{ logMsg.info(err); });
|
||||
});
|
||||
res.send({'status':200,'message':"success",'data':"No data"});
|
||||
|
||||
Loading…
Reference in New Issue
Block a user