Skip to content

Commit

Permalink
💚 Fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
naelob committed Apr 8, 2024
1 parent d8c4a6c commit 71de8ed
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 9 deletions.
Empty file removed packages/shared/.env.example
Empty file.
6 changes: 0 additions & 6 deletions packages/shared/src/config.ts

This file was deleted.

7 changes: 4 additions & 3 deletions packages/shared/src/envConfig.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import config from "./config";
import { AuthStrategy, providersConfig } from "./utils";
import axios from 'axios';

Expand Down Expand Up @@ -177,7 +176,8 @@ export async function getCustomCredentialsData(projectId: string, type: string,
attributes
}
const res = await axios.post(
`${config.API_URL}/connections-strategies/get`,
//TODO: handle hardcode
`http://localhost:3000/connections-strategies/get`,
JSON.stringify(body),
{
headers: {
Expand All @@ -195,7 +195,8 @@ export async function getCustomCredentialsData(projectId: string, type: string,
}

export async function getCredentials(projectId: string, type: string) {
const isCustomCred = await axios.get(`${config.API_URL}/connections-strategies/isCustomCredentials?projectId=${projectId}&type=${type}`);
//TODO: Handle hardocde api env
const isCustomCred = await axios.get(`http://localhost:3000/connections-strategies/isCustomCredentials?projectId=${projectId}&type=${type}`);
const provider = extractProvider(type);
const vertical = extractVertical(type);
//const vertical = findProviderVertical(provider);
Expand Down

1 comment on commit 71de8ed

@vercel
Copy link

@vercel vercel bot commented on 71de8ed Apr 8, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.