Skip to content

Commit a0a6891

Browse files
Fixes cloud patch deep links requiring paid plan
1 parent 05ad596 commit a0a6891

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/uris/deepLinks/deepLink.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ export enum DeepLinkType {
1515
Workspace = 'workspace',
1616
}
1717

18-
export const AccountDeepLinkTypes = [DeepLinkType.Draft, DeepLinkType.Workspace];
19-
export const PaidDeepLinkTypes = [];
18+
export const AccountDeepLinkTypes: DeepLinkType[] = [DeepLinkType.Draft, DeepLinkType.Workspace];
19+
export const PaidDeepLinkTypes: DeepLinkType[] = [];
2020

2121
export function deepLinkTypeToString(type: DeepLinkType): string {
2222
switch (type) {

src/uris/deepLinks/deepLinkService.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ import {
2626
deepLinkStateTransitionTable,
2727
DeepLinkType,
2828
deepLinkTypeToString,
29+
PaidDeepLinkTypes,
2930
parseDeepLinkUri,
3031
} from './deepLink';
3132

@@ -458,7 +459,7 @@ export class DeepLinkService implements Disposable {
458459
message = 'No link type provided.';
459460
break;
460461
}
461-
if (!AccountDeepLinkTypes.includes(targetType)) {
462+
if (!PaidDeepLinkTypes.includes(targetType)) {
462463
action = DeepLinkServiceAction.PlanCheckPassed;
463464
break;
464465
}

0 commit comments

Comments
 (0)