needle-innovision / nestjs-tenancy

Multi-tenancy approach for nestjs - currently supported only for mongodb with mongoose
MIT License
186 stars 58 forks source link

Update Documentation [README file & NPM example] #33

Closed SamLevinSE closed 2 years ago

SamLevinSE commented 2 years ago

Hey,

Checking the documentation of NestJS, the value assigned to the load property is an array, however, in the example you provided you directly pass the configuration. This produces a type error. From docs:

image

The update will be like this:

ConfigModule.forRoot({ isGlobal: true, load: [configuration], })

Best, Sam

sandeepsuvit commented 2 years ago

@SamLevinSE thanks for writing in. I have updated the docs.