susee
This commit is contained in:
parent
8d8dcccc16
commit
06b8a74e5d
@ -225,7 +225,9 @@ 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
|
||||||
res.send({'status':200,'message':"success",'data' : "No Data"});
|
setTimeout(() => {
|
||||||
|
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