Skip to content

Commit

Permalink
fix(mongoose): add some missing flags
Browse files Browse the repository at this point in the history
mostly to fix deprecations
  • Loading branch information
thatkookooguy committed Apr 26, 2021
1 parent 11e3cbd commit 70d2e06
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion server/src/api/api.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,11 @@ const config = new ConfigService();
controllers: [ApiController],
imports: [
config.dbUrl ?
MongooseModule.forRoot(config.dbUrl) :
MongooseModule.forRoot(config.dbUrl, {
useFindAndModify: false,
useNewUrlParser: true,
useUnifiedTopology: true
}) :
createInMemoryDatabaseModule(),
UserModule,
RepoModule,
Expand Down

0 comments on commit 70d2e06

Please sign in to comment.