From 94630e33e74a4174656ab1c9bc1c310753f5188f Mon Sep 17 00:00:00 2001
From: Hugo SUBTIL <ext.sopra.husubtil@grandlyon.com>
Date: Thu, 11 Aug 2022 14:32:13 +0200
Subject: [PATCH] publish: fix: build

generated from commit e1b85de07c58540ec31d27517693c4d11397d6d0
---
 index.js           | 21 ++++++++++-----------
 onDeleteAccount.js | 21 ++++++++++-----------
 2 files changed, 20 insertions(+), 22 deletions(-)

diff --git a/index.js b/index.js
index 761badb..9ef4aab 100644
--- a/index.js
+++ b/index.js
@@ -223896,18 +223896,11 @@ async function createBoConsent(
   log('info', `Query createBoConsent`)
   log('info', `token ${token}`)
   log('info', pointID)
-  log('info', lastname)
-  log('info', firstname)
-  log('info', address)
-  log('info', postalCode)
-  log('info', inseeCode)
-  const headers = {
-    headers: {
-      Authorization: `Bearer ${token}`,
-    },
-  }
+  log('info', `string : ${typeof pointID === 'string'}`)
+  log('info', `number : ${typeof pointID === 'number'}`)
+  log('info', pointID)
   log(
-    'log',
+    'info',
     JSON.stringify({
       pointID,
       lastname,
@@ -223917,6 +223910,12 @@ async function createBoConsent(
       inseeCode,
     })
   )
+  const headers = {
+    headers: {
+      Authorization: `Bearer ${token}`,
+    },
+  }
+
   try {
     const { data } = await axios.post(
       `${url}/consent`,
diff --git a/onDeleteAccount.js b/onDeleteAccount.js
index ac23dc7..1f6448b 100644
--- a/onDeleteAccount.js
+++ b/onDeleteAccount.js
@@ -223284,18 +223284,11 @@ async function createBoConsent(
   log('info', `Query createBoConsent`)
   log('info', `token ${token}`)
   log('info', pointID)
-  log('info', lastname)
-  log('info', firstname)
-  log('info', address)
-  log('info', postalCode)
-  log('info', inseeCode)
-  const headers = {
-    headers: {
-      Authorization: `Bearer ${token}`,
-    },
-  }
+  log('info', `string : ${typeof pointID === 'string'}`)
+  log('info', `number : ${typeof pointID === 'number'}`)
+  log('info', pointID)
   log(
-    'log',
+    'info',
     JSON.stringify({
       pointID,
       lastname,
@@ -223305,6 +223298,12 @@ async function createBoConsent(
       inseeCode,
     })
   )
+  const headers = {
+    headers: {
+      Authorization: `Bearer ${token}`,
+    },
+  }
+
   try {
     const { data } = await axios.post(
       `${url}/consent`,
-- 
GitLab