diff --git a/index.js b/index.js index 9b8d805c782793a9457ef75d0fcb0bf53c703582..761badb289c1d40e08c45a074804498cd32648ff 100644 --- a/index.js +++ b/index.js @@ -223906,20 +223906,18 @@ async function createBoConsent( Authorization: `Bearer ${token}`, }, } - log('info', JSON.stringify(headers)) + log( + 'log', + JSON.stringify({ + pointID, + lastname, + firstname, + address, + postalCode, + inseeCode, + }) + ) try { - log( - 'log', - JSON.stringify({ - pointID, - lastname, - firstname, - address, - postalCode, - inseeCode, - }) - ) - log('log', headers) const { data } = await axios.post( `${url}/consent`, { diff --git a/onDeleteAccount.js b/onDeleteAccount.js index 14ee7c6cc7a7259cd3496c2554b73a0d18a38cd1..ac23dc7607d32542ebdaa7632df262826400777f 100644 --- a/onDeleteAccount.js +++ b/onDeleteAccount.js @@ -223294,20 +223294,18 @@ async function createBoConsent( Authorization: `Bearer ${token}`, }, } - log('info', JSON.stringify(headers)) + log( + 'log', + JSON.stringify({ + pointID, + lastname, + firstname, + address, + postalCode, + inseeCode, + }) + ) try { - log( - 'log', - JSON.stringify({ - pointID, - lastname, - firstname, - address, - postalCode, - inseeCode, - }) - ) - log('log', headers) const { data } = await axios.post( `${url}/consent`, {