MCPcopy Index your code
hub / github.com/sourcebot-dev/sourcebot / hasEntitlement

Function hasEntitlement

packages/backend/src/entitlements.ts:15–18  ·  view source on GitHub ↗
(entitlement: Entitlement)

Source from the content-addressed store, hash-verified

13}
14
15export const hasEntitlement = async (entitlement: Entitlement): Promise<boolean> => {
16 const license = await getLicense();
17 return _hasEntitlement(entitlement, license);
18}
19
20export const getEntitlements = async (): Promise<Entitlement[]> => {
21 const license = await getLicense();

Callers 7

index.tsFile · 0.70
getOctokitWithGithubAppFunction · 0.70
startSchedulerMethod · 0.50
startSchedulerMethod · 0.50
syncSearchContextsFunction · 0.50

Calls 1

getLicenseFunction · 0.85

Tested by

no test coverage detected