mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-09-22 13:39:35 +00:00
axios changes to request
This commit is contained in:
@@ -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',
|
||||
|
||||
@@ -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}`,
|
||||
|
||||
Reference in New Issue
Block a user