File tree Expand file tree Collapse file tree 2 files changed +13
-6
lines changed Expand file tree Collapse file tree 2 files changed +13
-6
lines changed Original file line number Diff line number Diff line change @@ -143,9 +143,14 @@ const mongoose = require("mongoose");
143
143
const dbURI = process . env . DBURI ;
144
144
145
145
// noinspection JSCheckFunctionSignatures
146
- mongoose . connect ( dbURI ) . then ( ( whatever ) => {
147
- console . log ( "owo did it work" ) ;
148
- } ) ;
146
+ mongoose
147
+ . connect ( dbURI , {
148
+ useNewUrlParser : true ,
149
+ useUnifiedTopology : true ,
150
+ } )
151
+ . then ( ( ) => {
152
+ console . log ( "owo did it work" ) ;
153
+ } ) ;
149
154
150
155
// noinspection JSCheckFunctionSignatures
151
156
Original file line number Diff line number Diff line change @@ -17,9 +17,11 @@ const dbURI = process.env.DBURI;
17
17
18
18
const mongoose = require ( "mongoose" ) ;
19
19
// noinspection JSCheckFunctionSignatures
20
- mongoose . connect ( dbURI ) . then ( ( whatever ) => {
21
- console . log ( "owo did it work" ) ;
22
- } ) ;
20
+ mongoose
21
+ . connect ( dbURI , { useNewUrlParser : true , useUnifiedTopology : true } )
22
+ . then ( ( whatever ) => {
23
+ console . log ( "owo did it work" ) ;
24
+ } ) ;
23
25
24
26
const manager = new ShardingManager ( "./bot.js" , { token : token } ) ;
25
27
You can’t perform that action at this time.
0 commit comments