Make db slaves ok

This commit is contained in:
Daniel Bulant 2021-05-16 13:02:24 +02:00 committed by GitHub
parent 7444b4467a
commit 950d33d003
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -11,6 +11,7 @@ dbClient.connect(e => {
console.error(e);
return process.exit();
}
dbClient.slaveOk();
console.log("Database connected!");
});
@ -19,4 +20,4 @@ const database = dbClient.db("Shasha");
/**
* @type {dbClient: MongoClient, database: Db}
*/
module.exports = { dbClient, database }
module.exports = { dbClient, database }