gwm
This commit is contained in:
parent
3524211b68
commit
5d1eb6888a
@ -12,7 +12,7 @@ exports.PullSalesPdData = async (req, res) =>
|
|||||||
GeneralSectionData = await GeneralSection.findOne({ where : { ref_no : req.body.pdid ,case_no :req.body.caseno, is_active : 1 }});
|
GeneralSectionData = await GeneralSection.findOne({ where : { ref_no : req.body.pdid ,case_no :req.body.caseno, is_active : 1 }});
|
||||||
if(GeneralSectionData)
|
if(GeneralSectionData)
|
||||||
{
|
{
|
||||||
res.send({'status':404, 'message': "data already exist." ,'data': "No data" });
|
res.send({'status':200, 'message': "data already exist." ,'data': "No data" });
|
||||||
}else{
|
}else{
|
||||||
const tempData =JSON.parse(JSON.stringify(req.body.data));
|
const tempData =JSON.parse(JSON.stringify(req.body.data));
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user