From 3addb4e71ab6da45206065ac3161e15fc1d75db8 Mon Sep 17 00:00:00 2001 From: Matthew R Date: Sun, 27 Oct 2019 23:05:24 -0400 Subject: [PATCH] fix mongoose deprecation warnings --- src/Client.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Client.ts b/src/Client.ts index 59bd6ff..1adade3 100644 --- a/src/Client.ts +++ b/src/Client.ts @@ -90,7 +90,7 @@ export default class Client extends Eris.Client { delete require.cache[require.resolve(`./events/${file}`)]; }); - await mongoose.connect(config.mongoURL); + await mongoose.connect(config.mongoURL, { useNewUrlParser: true, useUnifiedTopology: true }); await this.connect(); } }