From aeed2958a1d8c8754cef97a8ceca1a898529b631 Mon Sep 17 00:00:00 2001 From: Gustav Eikaas Date: Thu, 29 Aug 2024 11:06:55 +0200 Subject: [PATCH] . --- github-action/src/onboardApp.ts | 4 ++-- libs/handoverapp/src/lib/config/workspaceConfig.tsx | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/github-action/src/onboardApp.ts b/github-action/src/onboardApp.ts index 1568eadc3..cd38f858a 100644 --- a/github-action/src/onboardApp.ts +++ b/github-action/src/onboardApp.ts @@ -80,7 +80,7 @@ async function onboardAppForProjectMaster(appkey: string, token: string, env: Fu ['Content-Type']: 'application/json', }; const payload = { - type: "ProjectMaster" + type: "Facility" } const url = `${env === 'CI' ? testEnv.url : productionEnv.url}/api/onboarded-apps/${appkey}/context-type` console.log(`Sending ${payload} to ${url}`) @@ -139,7 +139,7 @@ async function onboardAppWithCategory(appkey: string, token: string, env: Fusion ['Authorization']: `Bearer ${token}`, ['Content-Type']: 'application/json', }; - const payload = { appKey: appkey, isLegacy: false, appGroupId: env == "CI" ? testEnv.categoryId : productionEnv.categoryId, contextTypes: ["ProjectMaster"] } + const payload = { appKey: appkey, isLegacy: false, appGroupId: env == "CI" ? testEnv.categoryId : productionEnv.categoryId, contextTypes: ["Facility"] } const res = await client.postJson( `${env === 'CI' ? testEnv.url : productionEnv.url}/api/onboarded-apps`, payload, diff --git a/libs/handoverapp/src/lib/config/workspaceConfig.tsx b/libs/handoverapp/src/lib/config/workspaceConfig.tsx index 643916539..a31168c39 100644 --- a/libs/handoverapp/src/lib/config/workspaceConfig.tsx +++ b/libs/handoverapp/src/lib/config/workspaceConfig.tsx @@ -25,7 +25,7 @@ export const WorkspaceWrapper = () => { const pbi = usePBIOptions('handoveranalytics', { column: 'Facility', - table: 'Dim_Facility ', + table: 'Dim_Facility', }); const { bookmarkKey, currentBookmark, onBookmarkChange } = useWorkspaceBookmarks();