File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ export class TenantServiceProviders extends ITenantServiceProviders {
6060 const tenantContainer = this . _rootContainer . createChild ( ) ;
6161
6262 tenantContainer . bind ( TenantId ) . toConstantValue ( tenant ) ;
63- tenantContainer . bind ( ' TenantId' ) . toConstantValue ( tenant ) ;
63+ tenantContainer . bind ( TenantId . name ) . toConstantValue ( tenant ) ;
6464
6565 const tenantBinder = new InversifyServiceBinder ( tenantContainer ) ;
6666 bindings . bindAllTenantServices ( tenantBinder , tenant ) ;
Original file line number Diff line number Diff line change @@ -333,19 +333,19 @@ export class DolittleClient extends IDolittleClient {
333333
334334 this . _serviceProviderBuilder . addTenantServices ( ( bindings , tenant ) => {
335335 bindings . bind ( IEventStore ) . toFactory ( ( ) => this . _eventStore ! . forTenant ( tenant ) ) ;
336- bindings . bind ( ' IEventStore' ) . toFactory ( ( ) => this . _eventStore ! . forTenant ( tenant ) ) ;
336+ bindings . bind ( IEventStore . name ) . toFactory ( ( ) => this . _eventStore ! . forTenant ( tenant ) ) ;
337337
338338 bindings . bind ( IAggregates ) . toFactory ( ( ) => this . _aggregates ! . forTenant ( tenant ) ) ;
339- bindings . bind ( ' IAggregates' ) . toFactory ( ( ) => this . _aggregates ! . forTenant ( tenant ) ) ;
339+ bindings . bind ( IAggregates . name ) . toFactory ( ( ) => this . _aggregates ! . forTenant ( tenant ) ) ;
340340
341341 bindings . bind ( IProjectionStore ) . toFactory ( ( ) => this . _projectionStore ! . forTenant ( tenant ) ) ;
342- bindings . bind ( ' IProjectionStore' ) . toFactory ( ( ) => this . _projectionStore ! . forTenant ( tenant ) ) ;
342+ bindings . bind ( IProjectionStore . name ) . toFactory ( ( ) => this . _projectionStore ! . forTenant ( tenant ) ) ;
343343
344344 bindings . bind ( IEmbedding ) . toFactory ( ( ) => this . _embeddingStore ! . forTenant ( tenant ) ) ;
345- bindings . bind ( ' IEmbedding' ) . toFactory ( ( ) => this . _embeddingStore ! . forTenant ( tenant ) ) ;
345+ bindings . bind ( IEmbedding . name ) . toFactory ( ( ) => this . _embeddingStore ! . forTenant ( tenant ) ) ;
346346
347347 bindings . bind ( IResources ) . toFactory ( ( ) => this . _resources ! . forTenant ( tenant ) ) ;
348- bindings . bind ( ' IResources' ) . toFactory ( ( ) => this . _resources ! . forTenant ( tenant ) ) ;
348+ bindings . bind ( IResources . name ) . toFactory ( ( ) => this . _resources ! . forTenant ( tenant ) ) ;
349349 } ) ;
350350
351351 for ( const callback of configuredCallbacks ) {
You can’t perform that action at this time.
0 commit comments