From 9d93919dda3ca0331dba672be122ed9893cdcfc9 Mon Sep 17 00:00:00 2001 From: Bastien Dumont <bdumont@grandlyon.com> Date: Fri, 31 May 2024 17:18:51 +0200 Subject: [PATCH] publish: chore(release): 2.0.2 generated from commit 50a0a85baea8b347de736860b3c63a8e8fec6e64 --- index.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/index.js b/index.js index 4b03bfb..7c9d2dc 100644 --- a/index.js +++ b/index.js @@ -78,9 +78,6 @@ async function start(fields, cozyParameters) { log('debug', `FIELDS ${JSON.stringify(fields)}`) log('debug', `COZY_PARAMETERS ${JSON.stringify(cozyParameters)}`) - log('info', 'PCE from oauth_callback_results') - log('info', this._account.oauth_callback_results.pce) - if (NO_DATA) { log( 'debug', @@ -90,8 +87,8 @@ async function start(fields, cozyParameters) { let { pce, email, firstname, lastname, postalCode } = fields - if (!pce && fields?.oauth_callback_results?.pce) { - pce = fields.oauth_callback_results.pce + if (!pce && this._account?.oauth_callback_results?.pce) { + pce = this._account.oauth_callback_results.pce log('info', `OAuth callback result found, using pce ${pce}`) } -- GitLab