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
tsfunction runWithTenantContext(context: TenantContext, fn: () => T): T
Parameters
| Name | Type |
|---|---|
context | TenantContext |
fn | () => T |
Returns: T
Was this page helpful?