catch issue:GWM
This commit is contained in:
parent
a52a85d065
commit
f487034430
@ -56,8 +56,8 @@ exports.MasterDatas = async (req, res) => {
|
||||
|
||||
|
||||
exports.MenuList = async (req, res) => {
|
||||
Sync(function()
|
||||
{
|
||||
// Sync(function()
|
||||
// {
|
||||
try
|
||||
{
|
||||
const losid = req.query.losid;
|
||||
@ -258,8 +258,8 @@ exports.MenuList = async (req, res) => {
|
||||
res.send({'status':404,'message':"failed",'data':"data not found"});
|
||||
}
|
||||
|
||||
}); // end of findall EntitiesData
|
||||
}); // end of findall masters datas
|
||||
}).catch(err => { logMsg.info(err); }); // end of findall EntitiesData
|
||||
}).catch(err => { logMsg.info(err); }); // end of findall masters datas
|
||||
|
||||
});
|
||||
|
||||
@ -268,7 +268,7 @@ exports.MenuList = async (req, res) => {
|
||||
message: err.message || "Some error occurred while inserting statements." ,'data': "No data"
|
||||
}); } // end of try catch
|
||||
|
||||
}); // end of sync function
|
||||
// }); // end of sync function
|
||||
|
||||
};
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user