Skip to content

runWithTenantContext

reference
1 min readUpdated

Kind: Function

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

Run fn with the given tenant context bound for the duration of its async execution.

Signature

ts
function runWithTenantContext(context: TenantContext, fn: () => T): T

Parameters

NameType
contextTenantContext
fn() => T

Returns: T

Was this page helpful?

Download as PDF