Setu-TS
    Preparing search index...

    Function replaceTenant

    • Replaces request.tenant deliberately, bypassing the single-write guard.

      multi-tenancy-plugin's tenantMiddleware calls it, for the reason replacePrincipal documents. Safe to call on a request that was never sealed.

      Parameters

      • request: IRequest

        The request whose tenant is being replaced

      • tenant: ITenant

        The tenant to install

      Returns void

      0.1.0