From 64d9934ddf02e69d796f998c20361cd7e53bf393 Mon Sep 17 00:00:00 2001 From: Hugo SUBTIL <ext.sopra.husubtil@grandlyon.com> Date: Fri, 23 Sep 2022 11:26:56 +0200 Subject: [PATCH] test 2 --- src/onDeleteAccount.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/onDeleteAccount.js b/src/onDeleteAccount.js index 42bf5c6..5ee6787 100644 --- a/src/onDeleteAccount.js +++ b/src/onDeleteAccount.js @@ -16,11 +16,11 @@ const { isLocal, isAlpha } = require('./helpers/env') // const ACCOUNT_ID = isLocal() ? 'default_account_id' : 'enedis-sge-grandlyon' async function onDeleteAccount() { - log('info', 'Deleting account ...') - log('info', 'Getting secrets ...') - const ACCOUNT_ID = getAccountId() - const accountRev = getAccountRev() if (!isAlpha()) { + log('info', 'Deleting account ...') + log('info', 'Getting secrets ...') + const ACCOUNT_ID = getAccountId() + const accountRev = getAccountRev() if (accountRev) { log('info', 'Account rev exist') const accountData = await getAccountForDelete(ACCOUNT_ID, accountRev) -- GitLab