fixes
parent
1e0716b409
commit
a60270719a
|
@ -121,7 +121,13 @@ export default class Client extends eris.Client {
|
||||||
|
|
||||||
|
|
||||||
public async loadDatabase() {
|
public async loadDatabase() {
|
||||||
await mongoose.connect(this.config.mongoDB, { useNewUrlParser: true, useUnifiedTopology: true, poolSize: 50 });
|
await mongoose.connect(this.config.mongoDB, {
|
||||||
|
useNewUrlParser: true,
|
||||||
|
useUnifiedTopology: true,
|
||||||
|
poolSize: 50,
|
||||||
|
autoReconnect: true,
|
||||||
|
replicaSet: 'rs0',
|
||||||
|
});
|
||||||
|
|
||||||
const statMessages = await this.db.Stat.findOne({ name: 'messages' });
|
const statMessages = await this.db.Stat.findOne({ name: 'messages' });
|
||||||
const statCommands = await this.db.Stat.findOne({ name: 'commands' });
|
const statCommands = await this.db.Stat.findOne({ name: 'commands' });
|
||||||
|
|
Loading…
Reference in New Issue