fix pr review for databricks integration

This commit is contained in:
Vladyslav Matsiiako
2024-10-04 00:09:33 -07:00
parent 2fc562ff2d
commit 4aeb2bf65e
3 changed files with 6 additions and 7 deletions
@@ -458,9 +458,11 @@ const getAppsCircleCI = async ({ accessToken }: { accessToken: string }) => {
/**
* Return list of projects for Databricks integration
*/
const getAppsDatabricks = async ({ accessToken }: { accessToken: string }) => {
const getAppsDatabricks = async ({ url, accessToken }: { url?: string | null; accessToken: string }) => {
const databricksApiUrl = `${url}/api`;
const res = await request.get<{ scopes: { name: string; backend_type: string }[] }>(
`${IntegrationUrls.DATABRICKS_API_URL}/2.0/secrets/scopes/list`,
`${databricksApiUrl}/2.0/secrets/scopes/list`,
{
headers: {
Authorization: `Bearer ${accessToken}`,
@@ -1128,6 +1130,7 @@ export const getApps = async ({
case Integrations.DATABRICKS:
return getAppsDatabricks({
url,
accessToken
});
@@ -74,7 +74,7 @@ export enum IntegrationUrls {
RAILWAY_API_URL = "https://backboard.railway.app/graphql/v2",
FLYIO_API_URL = "https://api.fly.io/graphql",
CIRCLECI_API_URL = "https://circleci.com/api",
DATABRICKS_API_URL = "https:/dbc-5e0185c0-20ac.cloud.databricks.com/api",
DATABRICKS_API_URL = "https:/xxxx.com/api",
TRAVISCI_API_URL = "https://api.travis-ci.com",
SUPABASE_API_URL = "https://api.supabase.com",
LARAVELFORGE_API_URL = "https://forge.laravel.com",