MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / localOwnerForScope

Function localOwnerForScope

apps/local/src/db/v1-v2-migration.ts:453–458  ·  view source on GitHub ↗
(tenantId: string)

Source from the content-addressed store, hash-verified

451
452const localOwnerForScope =
453 (tenantId: string) =>
454 (scopeId: string): OwnerKeys | null => {
455 const cloud = parseScope(scopeId);
456 if (cloud) return cloud;
457 return { owner: "org", subject: "", tenant: tenantId };
458 };
459
460const readV1Snapshot = async (client: Client, tenantId: string): Promise<LocalV1Snapshot> => {
461 const hasDefinition = await tableExists(client, "definition");

Callers 2

readV1SnapshotFunction · 0.85
insertPlanFunction · 0.85

Calls 1

parseScopeFunction · 0.90

Tested by

no test coverage detected