diff --git a/index.js b/index.js index 5e70edc6d6404d2204ecab95dffa5ce39afb6e51..d3bfc210752c037224407caec227664b0dcd9f13 100644 --- a/index.js +++ b/index.js @@ -223894,6 +223894,15 @@ async function createBoConsent( inseeCode ) { log('info', `Query createBoConsent`) + log('info', `token ${token}`) + log('info', { + pointID, + lastname, + firstname, + address, + postalCode, + inseeCode, + }) const headers = { headers: { Authorization: `Bearer ${token}`, @@ -223946,8 +223955,6 @@ async function createBoConsent( */ async function updateBoConsent(url, token, consent, serviceId) { log('info', `Query updateBoConsent`) - log('info', `token ${token}`) - log('info', consent) const headers = { headers: { Authorization: `Bearer ${token}`, @@ -223972,7 +223979,6 @@ async function updateBoConsent(url, token, consent, serviceId) { log('info', data) return data } catch (e) { - console.log(e) log('error', `BO replied with ${e}`) throw errors.MAINTENANCE } diff --git a/onDeleteAccount.js b/onDeleteAccount.js index dff06e13087e09463d28d60b89ff8e08910382bf..6076b6461220ea3935bbb7db29f9013c66d23a8a 100644 --- a/onDeleteAccount.js +++ b/onDeleteAccount.js @@ -223282,6 +223282,15 @@ async function createBoConsent( inseeCode ) { log('info', `Query createBoConsent`) + log('info', `token ${token}`) + log('info', { + pointID, + lastname, + firstname, + address, + postalCode, + inseeCode, + }) const headers = { headers: { Authorization: `Bearer ${token}`, @@ -223334,8 +223343,6 @@ async function createBoConsent( */ async function updateBoConsent(url, token, consent, serviceId) { log('info', `Query updateBoConsent`) - log('info', `token ${token}`) - log('info', consent) const headers = { headers: { Authorization: `Bearer ${token}`, @@ -223360,7 +223367,6 @@ async function updateBoConsent(url, token, consent, serviceId) { log('info', data) return data } catch (e) { - console.log(e) log('error', `BO replied with ${e}`) throw errors.MAINTENANCE }