()
| 7 | import { SINGLE_TENANT_ORG_ID } from "./constants.js"; |
| 8 | |
| 9 | const getLicense = async () => { |
| 10 | return prisma.license.findUnique({ |
| 11 | where: { orgId: SINGLE_TENANT_ORG_ID }, |
| 12 | }); |
| 13 | } |
| 14 | |
| 15 | export const hasEntitlement = async (entitlement: Entitlement): Promise<boolean> => { |
| 16 | const license = await getLicense(); |
no outgoing calls
no test coverage detected