From 451d2c3611527113b1dd8c790426687e1c98a80a Mon Sep 17 00:00:00 2001 From: Flam3rboy <34555296+Flam3rboy@users.noreply.github.com> Date: Mon, 8 Feb 2021 15:39:46 +0100 Subject: :arrow_up: bump lambert-db --- src/util/Database.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/util/Database.ts') diff --git a/src/util/Database.ts b/src/util/Database.ts index d842ac6b..ed45a9ad 100644 --- a/src/util/Database.ts +++ b/src/util/Database.ts @@ -1,6 +1,9 @@ import { MongoDatabase } from "lambert-db"; // TODO: load url from config -const db = new MongoDatabase("mongodb://127.0.0.1:27017/lambert?readPreference=secondaryPreferred"); +const db = new MongoDatabase("mongodb://127.0.0.1:27017/lambert?readPreference=secondaryPreferred", { + useNewUrlParser: true, + useUnifiedTopology: false, +}); export default db; -- cgit 1.5.1