Skip to content

Commit

Permalink
updated docs
Browse files Browse the repository at this point in the history
  • Loading branch information
sandeepsuvit committed Jun 29, 2020
1 parent b941ec8 commit 563b5a8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ import { CatsModule } from "./cat.module.ts";
import { ConfigModule, ConfigService } from '@nestjs/config';
import configuration from './config';
import { TenantModule } from './tenant/tenant.module';
import { TenantValidator } from './tenant/validators/tenant-validator';
import { CustomTenantValidator } from './tenant/validators/custom-tenant.validator';

@Module({
imports: [
Expand All @@ -243,7 +243,7 @@ import { TenantValidator } from './tenant/validators/tenant-validator';
// Tenant async configuration
TenancyModule.forRootAsync({
imports: [TenantModule],
useFactory: async (cfs: ConfigService, tVal: TenantValidator) => {
useFactory: async (cfs: ConfigService, tVal: CustomTenantValidator) => {
return {
// Base tenant configurations
tenantIdentifier: 'X-TENANT-ID',
Expand All @@ -253,7 +253,7 @@ import { TenantValidator } from './tenant/validators/tenant-validator';
validator: (tenantId: string) => tVal.setTenantId(tenantId),
}
},
inject: [ConfigService, TenantValidator],
inject: [ConfigService, CustomTenantValidator],
}),
CatsModule,
],
Expand Down

0 comments on commit 563b5a8

Please sign in to comment.