Skip to content

Commit d1cafe2

Browse files
dacoburnjdalton
authored andcommitted
fix: improve organization capabilities detection for plan variants
1 parent 7431196 commit d1cafe2

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 = {
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
@@ -6,7 +6,7 @@ import type {
66
export function getEnterpriseOrgs(
77
orgs: Organizations,
88
): EnterpriseOrganizations {
9-
return orgs.filter(o => o.plan === 'enterprise') as EnterpriseOrganizations
9+
return orgs.filter(o => o.plan.includes('enterprise')) as EnterpriseOrganizations
1010
}
1111

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

0 commit comments

Comments
 (0)