mirror of
https://github.com/danbulant/Shasha
synced 2026-06-19 14:21:37 +00:00
Make db slaves ok
This commit is contained in:
parent
7444b4467a
commit
950d33d003
1 changed files with 2 additions and 1 deletions
|
|
@ -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 }
|
||||
|
|
|
|||
Loading…
Reference in a new issue