From 514dee8617f9a55ee067f8247eb123717478a8a1 Mon Sep 17 00:00:00 2001 From: build-token <build-token> Date: Fri, 9 Jun 2023 08:44:36 +0000 Subject: [PATCH] publish: retours generated from commit 62425158453169f37e366c492c48e036a214eb85 --- index.js | 5 ++--- onDeleteAccount.js | 5 ++--- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/index.js b/index.js index 39a73a6..fa57ae8 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 not malformed`) + throw new Error(`PointId ${pointId} is malformed`) } } @@ -229662,11 +229662,10 @@ async function createBoConsent( } try { - const pdl = parseInt(pointID) const { data } = await axios.post( `${url}/consent`, { - pdl, + pointID, lastname, firstname, address, diff --git a/onDeleteAccount.js b/onDeleteAccount.js index 7499015..3b4843e 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 not malformed`) + throw new Error(`PointId ${pointId} is malformed`) } } @@ -228895,11 +228895,10 @@ async function createBoConsent( } try { - const pdl = parseInt(pointID) const { data } = await axios.post( `${url}/consent`, { - pdl, + pointID, lastname, firstname, address, -- GitLab