Skip to content

Documentation / @tenancy-node/core / requireTenant

Function: requireTenant() ​

requireTenant(tenants, ref): Promise<Tenant>

Defined in: core/src/application/shared.ts:34

Busca el tenant o lanza TenantNotFoundError. Un id con formato inválido tampoco existe.

Parameters ​

tenants ​

TenantReader

ref ​

TenantRef

Returns ​

Promise<Tenant>

Publicado bajo la licencia MIT.