Merge branch 'master' of bitbucket.org:venbainformationtechnology/smc_cet_mainapp_backend
This commit is contained in:
commit
63f87afe8b
@ -70,7 +70,8 @@ exports.mainLandingPage = async (req, res) =>
|
|||||||
loan_no_id : LoanDetailData.dataValues.id ,
|
loan_no_id : LoanDetailData.dataValues.id ,
|
||||||
entity_name : [value.firstName, value.middleName, value.lastName ].filter(Boolean).join(" "),
|
entity_name : [value.firstName, value.middleName, value.lastName ].filter(Boolean).join(" "),
|
||||||
entity_formation_date : moment(new Date(value.doi)).format("YYYY-MM-DD"),
|
entity_formation_date : moment(new Date(value.doi)).format("YYYY-MM-DD"),
|
||||||
// entity_type : value.kycType
|
pan_no : value.panNo,
|
||||||
|
entity_type : value.kycType.trim()
|
||||||
}
|
}
|
||||||
ResData.lstApplicantAddress.forEach(async(address_value,index) =>
|
ResData.lstApplicantAddress.forEach(async(address_value,index) =>
|
||||||
{
|
{
|
||||||
@ -108,6 +109,8 @@ exports.mainLandingPage = async (req, res) =>
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
}); // end of entity detail promise
|
}); // end of entity detail promise
|
||||||
|
|
||||||
|
|
||||||
// Create Entity detail
|
// Create Entity detail
|
||||||
EntityKYCDetailDataInsert.then(async(lstEntityKYCDetailDataArray)=>
|
EntityKYCDetailDataInsert.then(async(lstEntityKYCDetailDataArray)=>
|
||||||
{
|
{
|
||||||
@ -134,10 +137,11 @@ exports.mainLandingPage = async (req, res) =>
|
|||||||
lstApplicantKYCDetailObj =
|
lstApplicantKYCDetailObj =
|
||||||
{
|
{
|
||||||
Applicant_id : value.iD_ApplicantKYCDetail,
|
Applicant_id : value.iD_ApplicantKYCDetail,
|
||||||
Applicant_entity_type : value.kycType.trim(),
|
|
||||||
losid : LoanDetailData.dataValues.losid ,
|
losid : LoanDetailData.dataValues.losid ,
|
||||||
loan_no_id : LoanDetailData.dataValues.id ,
|
loan_no_id : LoanDetailData.dataValues.id ,
|
||||||
name : [value.firstName, value.middleName, value.lastName ].filter(Boolean).join(" "), // concat and ignore null
|
name : [value.firstName, value.middleName, value.lastName ].filter(Boolean).join(" "), // concat and ignore null
|
||||||
|
pan_no : value.panNo,
|
||||||
|
entity_type : value.kycType.trim(),
|
||||||
}
|
}
|
||||||
lstApplicantKYCDetailDataArray.push(lstApplicantKYCDetailObj);
|
lstApplicantKYCDetailDataArray.push(lstApplicantKYCDetailObj);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,6 +1,10 @@
|
|||||||
require('dotenv').config();
|
require('dotenv').config();
|
||||||
const express = require('express')
|
const express = require('express')
|
||||||
const app = express()
|
const app = express()
|
||||||
|
// Enable CORS for all routes
|
||||||
|
const cors = require('cors');
|
||||||
|
app.use(cors());
|
||||||
|
|
||||||
//it is used to clear cache
|
//it is used to clear cache
|
||||||
app.use(function(req, res, next) {
|
app.use(function(req, res, next) {
|
||||||
res.set("Cache-Control", "no-cache, no-store, must-revalidate, max-age=0")
|
res.set("Cache-Control", "no-cache, no-store, must-revalidate, max-age=0")
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user