susee
This commit is contained in:
parent
06b8a74e5d
commit
a2f75bd1d4
@ -225,9 +225,8 @@ exports.PullCreditPdPhotographsData = async (req, res) =>
|
|||||||
.then((successData)=>{logMsg.info("Photograph insert success ,PdId= "+PdId);})
|
.then((successData)=>{logMsg.info("Photograph insert success ,PdId= "+PdId);})
|
||||||
.catch((err)=>{ logMsg.info("Photograph insert failed ,PdId= "+PdId+" ERROR : "+err);});
|
.catch((err)=>{ logMsg.info("Photograph insert failed ,PdId= "+PdId+" ERROR : "+err);});
|
||||||
// responce to FE
|
// responce to FE
|
||||||
setTimeout(() => {
|
res.send({'status':200,'message':"success",'data': "no data"}); //,"+base64_data+"
|
||||||
res.send({'status':200,'message':"success",'data':"INSERT INTO sales_photograph (pd_id,ref_no,img_name,img) VALUES ("+PdId+","+req.body.pdid+","+req.body.img_name+")"}); //,"+base64_data+"
|
|
||||||
}, 300);
|
|
||||||
|
|
||||||
|
|
||||||
} catch(err) {
|
} catch(err) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user