MCPcopy Index your code
hub / github.com/simstudioai/sim / resolveBilledPlanCategory

Function resolveBilledPlanCategory

apps/sim/lib/workspaces/policy.ts:172–182  ·  view source on GitHub ↗
(
  workspaceState: WorkspaceOwnershipState
)

Source from the content-addressed store, hash-verified

170}
171
172async 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

Callers 1

getWorkspaceInvitePolicyFunction · 0.85

Tested by

no test coverage detected