basalt / files/src / resolveFileTenant
Function: resolveFileTenant()
> resolveFileTenant(explicit, tenancyActive): string | undefined
Defined in: files/src/files.ts:201
The tenant a file call is scoped to, or undefined when the app has no tenancy.
With @basaltkit/tenancy registered an unresolvable tenant is an error: an unscoped read or write would cross tenants. Without it there is no tenant dimension and nothing to cross.
Parameters
explicit
string | undefined
tenancyActive
boolean
Returns
string | undefined