(orgId: string)
| 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 |
no test coverage detected