From 74d17a20a41027ecfd81f6c7bb6dd86efbd8c681 Mon Sep 17 00:00:00 2001 From: Aashish-Upadhyay-101 Date: Tue, 28 Feb 2023 10:15:09 +0545 Subject: [PATCH] axios changes to request --- backend/src/integrations/exchange.ts | 2 +- backend/src/integrations/sync.ts | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/backend/src/integrations/exchange.ts b/backend/src/integrations/exchange.ts index b436cf97b..7e6f5662e 100644 --- a/backend/src/integrations/exchange.ts +++ b/backend/src/integrations/exchange.ts @@ -373,7 +373,7 @@ const exchangeCodeGitlab = async ({ code }: { code: string }) => { try { res = ( - await axios.post( + await request.post( INTEGRATION_GITLAB_TOKEN_URL, new URLSearchParams({ grant_type: 'authorization_code', diff --git a/backend/src/integrations/sync.ts b/backend/src/integrations/sync.ts index c3db64b39..7878732db 100644 --- a/backend/src/integrations/sync.ts +++ b/backend/src/integrations/sync.ts @@ -58,7 +58,6 @@ const syncSecrets = async ({ accessToken: string; }) => { try { - console.log(integration); // aashish switch (integration.integration) { case INTEGRATION_AZURE_KEY_VAULT: await syncSecretsAzureKeyVault({ @@ -1508,7 +1507,7 @@ const syncSecretsGitLab = async ({ } // delete secrets - for (let sec of getSecretsRes) { + for (const sec of getSecretsRes) { if (!(sec.key in secrets)) { await request.delete( `${INTEGRATION_GITLAB_API_URL}/v4/projects/${integration?.appId}/variables/${sec.key}`,