diff --git a/onDeleteAccount.js b/onDeleteAccount.js index 61a992f281d6ccf61541a65f3cf050477ea31c87..c60ecf0f2cc55336bfe4f5008d2f738e581b9c72 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'