Skip to content

Commit d315404

Browse files
committed
fix tests
1 parent 6d0d3d2 commit d315404

File tree

3 files changed

+2
-4
lines changed

3 files changed

+2
-4
lines changed

src/portal-options/pm-request-context-provider.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ export interface RequestContext extends Record<string, any> {
99
organization: string;
1010
crdGatewayApiUrl?: string;
1111
isSubDomain: boolean;
12-
isLocalhost: boolean;
1312
}
1413

1514
@Injectable()
@@ -24,7 +23,6 @@ export class PMRequestContextProvider implements RequestContextProvider {
2423
...(await this.pmPortalContextService.getContextValues(request)),
2524
organization,
2625
isSubDomain: request.hostname !== baseDomain,
27-
isLocalhost: request.hostname.includes('localhost'),
2826
};
2927
}
3028
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export class ContentConfigurationServiceProvidersService
2424
throw new Error('Token is required');
2525
}
2626

27-
if (!context.isSubDomain && !context.isLocalhost) {
27+
if (!context.isSubDomain) {
2828
return welcomeNodeConfig;
2929
}
3030

src/portal-options/service-providers/kubernetes-service-providers.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export class KubernetesServiceProvidersService
2424
throw new Error('Token is required');
2525
}
2626

27-
if (!context.isSubDomain && !context.isLocalhost) {
27+
if (!context.isSubDomain) {
2828
return welcomeNodeConfig;
2929
}
3030

0 commit comments

Comments
 (0)