diff --git a/database/mongod.js b/database/mongod.js index 66ab4eb..71d9dec 100644 --- a/database/mongod.js +++ b/database/mongod.js @@ -12,7 +12,7 @@ module.exports.initMongoDBInstance = async (client,config,callback) => { createStore: async (name, callback) => { db.createCollection(name).then(async () => { await callback(true); - }).catch(() => { + }).catch(async () => { await callback(false); }) },