production hotfix for questionnaire sending to CRM - parseFloat on founder_part
This commit is contained in:
parent
cd6480d2b3
commit
11301a5e6b
@ -193,6 +193,7 @@ export default async function handler(req, res)
|
||||
for(let i in founder_persons)
|
||||
{
|
||||
founder_persons[i].founder_number = parseInt(i, 10) + 1;
|
||||
founder_persons[i].founder_part = parseFloat(founder_persons[i].founder_part);
|
||||
founder_persons[i].telephone = checkNullEmpty(founder_persons[i].telephone) ? founder_persons[i].telephone.replace(/[^0-9]/g, '') : null;
|
||||
founder_persons[i].identity_document.issuedate = checkNullEmpty(founder_persons[i].identity_document.issuedate) ? moment(founder_persons[i].identity_document.issuedate).format("YYYY-MM-DD") : null;
|
||||
founder_persons[i].identity_document.citizenship_code = founder_persons[i].identity_document.citizenship.code.toString();
|
||||
@ -368,6 +369,7 @@ export default async function handler(req, res)
|
||||
if(crm_send_error.response !== undefined)
|
||||
{
|
||||
console.error("crm_send_error", { status: crm_send_error.response.status, data: crm_send_error.response.data });
|
||||
console.error({ payload: inspect(payload, true, null, true) });
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user