susee
This commit is contained in:
parent
fcabbf4380
commit
b5bd01dc51
7
.gitignore
vendored
7
.gitignore
vendored
@ -2,6 +2,7 @@
|
||||
/node_modules
|
||||
/storage/log/
|
||||
/storage/uploads/
|
||||
**/*.jpg
|
||||
!storage/uploads/*.jpg
|
||||
|
||||
!storage
|
||||
storage/*
|
||||
storage/uploads/*
|
||||
!storage/uploads/
|
||||
|
||||
@ -73,11 +73,10 @@ exports.PullCreditPdData = async (req, res) =>
|
||||
}
|
||||
}
|
||||
// Object.assign( obj , { ref_no : req.body.pdid });
|
||||
await CreditGeneralInformation.create(obj)
|
||||
.then((successData)=>{logMsg.info("GeneralInformation insert success ,PdId= "+successData.dataValues.pd_id);})
|
||||
.catch((err)=>{ logMsg.info("GeneralInformation insert failed ,PdId(ref_no)= "+req.body.pdid); });
|
||||
pd_id = await CreditGeneralInformation.findOne({ where : { ref_no : req.body.pdid , is_active : 1 }});
|
||||
// pd_id = await CreditGeneralInformation.create(obj)
|
||||
pd_id = await CreditGeneralInformation.create(obj)
|
||||
// .then((successData)=>{logMsg.info("GeneralInformation insert success ,PdId= "+successData.dataValues.pd_id);})
|
||||
// .catch((err)=>{ logMsg.info("GeneralInformation insert failed ,PdId(ref_no)= "+req.body.pdid); });
|
||||
// pd_id = await CreditGeneralInformation.findOne({ where : { ref_no : req.body.pdid , is_active : 1 }});
|
||||
|
||||
|
||||
// loop to check if the data is array or nestedObject or objects
|
||||
|
||||
Loading…
Reference in New Issue
Block a user