updated message

This commit is contained in:
Jack 2021-11-23 21:54:17 +00:00
parent ecc91f8fc4
commit d954816c75

View file

@ -17,7 +17,7 @@ module.exports = {
});
},
mongoDB() {
if (!mongoClient) throw new Error("Database is offline");
if (!mongoClient) throw new Error("Could not connect to the database");
return mongoClient.db(process.env.DB_NAME);
},
};