Skip to content

Commit 3f308ce

Browse files
committed
fix entity name
1 parent 6dc43db commit 3f308ce

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

src/portal-options/account-entity-context-provider.service.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ import { EntityContextProvider } from '@openmfp/portal-server-lib';
44
@Injectable()
55
export class AccountEntityContextProvider implements EntityContextProvider {
66
async getContextValues(
7-
token: string,
8-
context?: Record<string, any>
7+
_token: string,
8+
context?: Record<string, any>,
99
): Promise<Record<string, any>> {
1010
return {
11-
id: context.account,
11+
id: context['core_platform-mesh_io_account'],
1212
policies: [
1313
'create',
1414
'delete',

src/portal-options/service-providers/content-configuration-service-providers.service.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,10 @@ export class ContentConfigurationServiceProvidersService
3434
'kubernetes-graphql-gateway/root',
3535
'kubernetes-graphql-gateway/virtual-workspace/contentconfigurations/root',
3636
);
37-
if (context?.account) {
38-
url = url.replace('/graphql', `:${context.account}/graphql`);
37+
38+
const platformMeshAccountId = context?.['core_platform-mesh_io_account'];
39+
if (platformMeshAccountId) {
40+
url = url.replace('/graphql', `:${platformMeshAccountId}/graphql`);
3941
}
4042

4143
console.log(`Calculated crd gateway api url: ${url}`);

0 commit comments

Comments
 (0)