From 34d4363e0bbf2c101b4f77a0400feafff19a6af3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Pailharey?= <rpailharey@grandlyon.com> Date: Mon, 12 Jun 2023 09:41:31 +0200 Subject: [PATCH] publish: remove log generated from commit 78cfc649afbc0e3d7e0309858a321cbe015b1e38 --- index.js | 5 +++-- onDeleteAccount.js | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/index.js b/index.js index fa57ae8..39a73a6 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 3b4843e..7499015 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, -- GitLab