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

Function isEnterprise

apps/sim/lib/data-drains/dispatcher.ts:101–108  ·  view source on GitHub ↗
(orgId: string)

Source from the content-addressed store, hash-verified

99 // billing lookup.
100 const enterpriseCache = new Map<string, boolean>()
101 const isEnterprise = async (orgId: string): Promise<boolean> => {
102 if (!isBillingEnabled) return true
103 const cached = enterpriseCache.get(orgId)
104 if (cached !== undefined) return cached
105 const result = await isOrganizationOnEnterprisePlan(orgId)
106 enterpriseCache.set(orgId, result)
107 return result
108 }
109
110 const queue = await getJobQueue()
111 let dispatched = 0

Callers 1

dispatchDueDrainsFunction · 0.70

Calls 3

getMethod · 0.65
setMethod · 0.65

Tested by

no test coverage detected