From 26be8133d9503f1dd7b41d00b6417c618fbab042 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Pailharey?= <rpailharey@grandlyon.com> Date: Thu, 24 Aug 2023 15:20:16 +0200 Subject: [PATCH] publish: Merge branch '25-follow-up-from-detailed-sentry-logs' into 'main' generated from commit 772de020d15d7b0e201addc1a8195fdcf51822e2 --- onDeleteAccount.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/onDeleteAccount.js b/onDeleteAccount.js index 61a992f..c60ecf0 100644 --- a/onDeleteAccount.js +++ b/onDeleteAccount.js @@ -246520,6 +246520,11 @@ async function onDeleteAccount() { } const secrets = getAccountSecret() + if (!accountData?.data?.consentId) { + log('debug', 'no consent for this account') + return + } + const userConsent = await getBoConsent( secrets.boBaseUrl, secrets.boToken, @@ -246555,7 +246560,6 @@ async function onDeleteAccount() { } log('info', 'Deleting account succeed') - throw new Error('pouet') } else { const errorMessage = 'No account revision was found, something went wrong during the deletion of said account' -- GitLab