ApiChanges:GWM

This commit is contained in:
sriramv 2022-05-28 12:01:03 +05:30
parent 1323db4660
commit 84d54bece3

View File

@ -76,8 +76,8 @@ exports.notesList = async (req, res) =>
if(req.query.entity_reference == undefined)
{
notesData = await Workingnotes.findAll({where :{losid : req.query.losid , module_name : req.query.module_name , is_active:1}});
console.log(JSON.parse(notesData[2].notes))
notesData = await Workingnotes.findAll({where :{losid : req.query.losid , module_name : req.query.module_name , is_active:1}})
.catch(err=>{console.log(err);});
res.send({'status':200 , message:"Success." ,'data': notesData});
}else{
notesData = await Workingnotes.findAll({where :{losid : req.query.losid , module_name : req.query.module_name , entity_reference : req.query.entity_reference, is_active:1}});