1
0
mirror of https://github.com/toast-ts/Daggerbot-TS.git synced 2024-11-17 16:30:58 -05:00

Increase timeout incase of host reboot.

This commit is contained in:
AnxietyisReal 2023-03-03 22:10:36 +11:00
parent 52f615c113
commit 454d1e1aa3

View File

@ -94,7 +94,7 @@ export default class TClient extends Client {
mongoose.set('strictQuery', true);
await mongoose.connect(this.tokens.mongodb_uri, {
autoIndex: true,
serverSelectionTimeoutMS: 5000,
serverSelectionTimeoutMS: 12000,
socketTimeoutMS: 30000,
family: 4,
keepAlive: true,