axios changes to request

This commit is contained in:
Aashish-Upadhyay-101
2023-02-28 10:15:09 +05:45
parent d537bd2f58
commit 74d17a20a4
2 changed files with 2 additions and 3 deletions
+1 -1
View File
@@ -373,7 +373,7 @@ const exchangeCodeGitlab = async ({ code }: { code: string }) => {
try { try {
res = ( res = (
await axios.post( await request.post(
INTEGRATION_GITLAB_TOKEN_URL, INTEGRATION_GITLAB_TOKEN_URL,
new URLSearchParams({ new URLSearchParams({
grant_type: 'authorization_code', grant_type: 'authorization_code',
+1 -2
View File
@@ -58,7 +58,6 @@ const syncSecrets = async ({
accessToken: string; accessToken: string;
}) => { }) => {
try { try {
console.log(integration); // aashish
switch (integration.integration) { switch (integration.integration) {
case INTEGRATION_AZURE_KEY_VAULT: case INTEGRATION_AZURE_KEY_VAULT:
await syncSecretsAzureKeyVault({ await syncSecretsAzureKeyVault({
@@ -1508,7 +1507,7 @@ const syncSecretsGitLab = async ({
} }
// delete secrets // delete secrets
for (let sec of getSecretsRes) { for (const sec of getSecretsRes) {
if (!(sec.key in secrets)) { if (!(sec.key in secrets)) {
await request.delete( await request.delete(
`${INTEGRATION_GITLAB_API_URL}/v4/projects/${integration?.appId}/variables/${sec.key}`, `${INTEGRATION_GITLAB_API_URL}/v4/projects/${integration?.appId}/variables/${sec.key}`,