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

Function observe

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

Source from the content-addressed store, hash-verified

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

Callers 3

assertTenantAllowedFunction · 0.70
isReadDeniedFunction · 0.70

Calls 1

pushMethod · 0.80

Tested by

no test coverage detected