Skip to content

runWithTenantBypass

reference
1 min readUpdated

Kind: Function

Source: atloria-monorepo/libs/database/src/lib/tenant-context.ts

Run fn with tenant scoping explicitly bypassed. Use for a deliberate cross-org read inside a request. If there is no active context this is a no-op passthrough.

Signature

ts
function runWithTenantBypass(fn: () => T): T

Parameters

NameType
fn() => T

Returns: T

Was this page helpful?

Download as PDF