This commit is contained in:
sriramv 2022-05-10 11:17:23 +05:30
parent 51191a143b
commit 19c19f7e15

View File

@ -122,8 +122,8 @@ exports.PullSalesPdPhotographsData = async (req, res) =>
for(const value of Photographdata)
{
Object.assign(value, { pd_id: PdId , ref_no :req.body.pdid});
await Photograph.create( value)
//Object.assign(value, { pd_id: PdId , ref_no :req.body.pdid});
await Photograph.create({pd_id: PdId , ref_no :req.body.pdid , img_name :value.img_name , img :"data:image/png;base64,"+value.img})
.then((successData)=>{logMsg.info("Photograph insert success ,PdId= "+PdId);})
.catch((err)=>{ logMsg.info("Photograph insert failed ,PdId= "+PdId);});
};