Skip to content

Commit b16f2d2

Browse files
committed
fix: improve organization capabilities detection for plan variants
1 parent 0910525 commit b16f2d2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/commands/organization/fetch-organization-list.mts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export type FetchOrganizationOptions = BaseFetchOptions & {
1212
}
1313

1414
export type EnterpriseOrganization = Omit<Organization, 'plan'> & {
15-
plan: 'enterprise'
15+
plan: `enterprise${string}`
1616
}
1717

1818
export type EnterpriseOrganizations = EnterpriseOrganization[]

src/utils/organization.mts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import type {
88
export function getEnterpriseOrgs(
99
orgs: Organizations,
1010
): EnterpriseOrganizations {
11-
return orgs.filter(o => o.plan === 'enterprise') as EnterpriseOrganizations
11+
return orgs.filter(o => o.plan.includes('enterprise')) as EnterpriseOrganizations
1212
}
1313

1414
export function getOrgSlugs(orgs: Organizations): string[] {

0 commit comments

Comments
 (0)