diff --git a/app/controllers/working.notes.controller.js b/app/controllers/working.notes.controller.js index 97fb576..52d6abc 100644 --- a/app/controllers/working.notes.controller.js +++ b/app/controllers/working.notes.controller.js @@ -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}});