mainLandingPage Api : suseendhiran
This commit is contained in:
parent
6204db2da7
commit
b593a8149b
@ -14,7 +14,8 @@ exports.mainLandingPage = async (req, res) =>
|
|||||||
ResData = await ApiCallHelper.loanDetailsDataApiCall(req.query.losid);
|
ResData = await ApiCallHelper.loanDetailsDataApiCall(req.query.losid);
|
||||||
if (ResData.status != 'Not Found')
|
if (ResData.status != 'Not Found')
|
||||||
{
|
{
|
||||||
if (ResData.lstLoanApplication.length != 0)
|
Loan_Detail = LoanDetail.findAll({ where : { losid : req.query.losid , is_active : 1}})
|
||||||
|
if (ResData.lstLoanApplication.length != 0 && Loan_Detail.length == undefined )
|
||||||
{
|
{
|
||||||
loanDetailData = ResData.lstLoanApplication[0];
|
loanDetailData = ResData.lstLoanApplication[0];
|
||||||
loanDetailObject =
|
loanDetailObject =
|
||||||
@ -139,7 +140,7 @@ exports.mainLandingPage = async (req, res) =>
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
logMsg.info("Los api call failed Failed" +ResData.losid);
|
logMsg.info("Los api call failed Failed" + ResData.losid);
|
||||||
} // Los api call failed
|
} // Los api call failed
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -191,7 +191,9 @@ async function EntityChildTable(EntityId)
|
|||||||
|
|
||||||
Promise.all([DueDiligenceCheckPromise, ATNWrelatedInputsPromise, OtherParametersPromise , TradeReferencesPromise , EnquiriesAndDisbursementsPromise ])
|
Promise.all([DueDiligenceCheckPromise, ATNWrelatedInputsPromise, OtherParametersPromise , TradeReferencesPromise , EnquiriesAndDisbursementsPromise ])
|
||||||
.then((values) => {
|
.then((values) => {
|
||||||
logMsg.info("Data Creation Success for EntityId= "+EntityId); // [3, 1337, "foo"]
|
values.forEach(element => {
|
||||||
|
logMsg.info(element+ "Data Creation Success for EntityId= "+EntityId); // [3, 1337, "foo"]
|
||||||
|
});
|
||||||
})
|
})
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -205,7 +207,7 @@ async function EntityChildTable(EntityId)
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
function ApplicantChildTable(ApplicantName , LoanId , ApplicantId , Losid , EntityType , ApiArray , Product , Applicant_id) {
|
function ApplicantChildTable(ApplicantName , LoanId , ApplicantId , Losid , EntityType , ApiArray , Product , Applicant_id ) {
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
// ApplicantsRelationship Table
|
// ApplicantsRelationship Table
|
||||||
@ -271,7 +273,9 @@ function ApplicantChildTable(ApplicantName , LoanId , ApplicantId , Losid , Enti
|
|||||||
|
|
||||||
Promise.all([ApplicantsRelationshipPromise, ResidenceAddressDetailsPromise, PropertyOwnershipIncomeConsideredPromise ])
|
Promise.all([ApplicantsRelationshipPromise, ResidenceAddressDetailsPromise, PropertyOwnershipIncomeConsideredPromise ])
|
||||||
.then((values) => {
|
.then((values) => {
|
||||||
logMsg.info("ApplicantsRelationshipPromise ,ResidenceAddressDetailsPromise, PropertyOwnershipIncomeConsidered inserted");; // [3, 1337, "foo"]
|
values.forEach(element => {
|
||||||
|
logMsg.info(element+ "Data Creation Success for EntityId= "+EntityId); // [3, 1337, "foo"]
|
||||||
|
});
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user