gwm
This commit is contained in:
parent
51191a143b
commit
19c19f7e15
@ -122,8 +122,8 @@ exports.PullSalesPdPhotographsData = async (req, res) =>
|
|||||||
|
|
||||||
for(const value of Photographdata)
|
for(const value of Photographdata)
|
||||||
{
|
{
|
||||||
Object.assign(value, { pd_id: PdId , ref_no :req.body.pdid});
|
//Object.assign(value, { pd_id: PdId , ref_no :req.body.pdid});
|
||||||
await Photograph.create( value)
|
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);})
|
.then((successData)=>{logMsg.info("Photograph insert success ,PdId= "+PdId);})
|
||||||
.catch((err)=>{ logMsg.info("Photograph insert failed ,PdId= "+PdId);});
|
.catch((err)=>{ logMsg.info("Photograph insert failed ,PdId= "+PdId);});
|
||||||
};
|
};
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user