diff --git a/index.js b/index.js index fa57ae894fde4df746db1b8bb36bd270cc2b3a0b..39a73a6a1345570c5b214657252287f1132f0dd3 100644 --- a/index.js +++ b/index.js @@ -229267,7 +229267,7 @@ function parsePointId(pointId) { } else if (strPointId.length === 13) { return `0${strPointId}` } else { - throw new Error(`PointId ${pointId} is malformed`) + throw new Error(`PointId ${pointId} is not malformed`) } } @@ -229662,10 +229662,11 @@ async function createBoConsent( } try { + const pdl = parseInt(pointID) const { data } = await axios.post( `${url}/consent`, { - pointID, + pdl, lastname, firstname, address, diff --git a/onDeleteAccount.js b/onDeleteAccount.js index 3b4843e3464b4cdca749bec3585d7942487b852a..7499015b6b3e68d346e50c921ec6f65f6da6441f 100644 --- a/onDeleteAccount.js +++ b/onDeleteAccount.js @@ -228500,7 +228500,7 @@ function parsePointId(pointId) { } else if (strPointId.length === 13) { return `0${strPointId}` } else { - throw new Error(`PointId ${pointId} is malformed`) + throw new Error(`PointId ${pointId} is not malformed`) } } @@ -228895,10 +228895,11 @@ async function createBoConsent( } try { + const pdl = parseInt(pointID) const { data } = await axios.post( `${url}/consent`, { - pointID, + pdl, lastname, firstname, address,