MCPcopy Create free account
hub / github.com/sourcebot-dev/sourcebot / getLicense

Function getLicense

packages/backend/src/entitlements.ts:9–13  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers 2

hasEntitlementFunction · 0.85
getEntitlementsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected