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

Function observe

packages/core/fumadb/src/query/table-policy.test.ts:21–23  ·  view source on GitHub ↗
(context: TenantPolicyContext, event: string)

Source from the content-addressed store, hash-verified

19}
20
21const observe = (context: TenantPolicyContext, event: string) => {
22 context.observed.push(`${context.marker}:${event}`);
23};
24
25const assertTenantAllowed = (tableName: string, context: TenantPolicyContext, tenantId: string) => {
26 observe(context, `${tableName}:assert`);

Callers 3

assertTenantAllowedFunction · 0.85
isReadDeniedFunction · 0.85

Calls 1

pushMethod · 0.80

Tested by

no test coverage detected