( workspaceState: WorkspaceOwnershipState )
| 170 | } |
| 171 | |
| 172 | async function resolveBilledPlanCategory( |
| 173 | workspaceState: WorkspaceOwnershipState |
| 174 | ): Promise<PlanCategory> { |
| 175 | if ( |
| 176 | workspaceState.workspaceMode === WORKSPACE_MODE.ORGANIZATION && |
| 177 | workspaceState.organizationId |
| 178 | ) { |
| 179 | return getInvitePlanCategoryForOrganization(workspaceState.organizationId) |
| 180 | } |
| 181 | return getInvitePlanCategoryForUser(workspaceState.billedAccountUserId) |
| 182 | } |
| 183 | |
| 184 | /** |
| 185 | * Resolve the invite-governing plan category for an organization from its |
no test coverage detected