1
0
Fork 0

fix mongoose deprecation warnings

refactor/models
Matthew 2019-10-27 23:05:24 -04:00
parent 8c887192e9
commit 3addb4e71a
No known key found for this signature in database
GPG Key ID: 766BE43AE75F7559
1 changed files with 1 additions and 1 deletions

View File

@ -90,7 +90,7 @@ export default class Client extends Eris.Client {
delete require.cache[require.resolve(`./events/${file}`)]; delete require.cache[require.resolve(`./events/${file}`)];
}); });
await mongoose.connect(config.mongoURL); await mongoose.connect(config.mongoURL, { useNewUrlParser: true, useUnifiedTopology: true });
await this.connect(); await this.connect();
} }
} }