add async to .catch in createStore

This commit is contained in:
ui_creeperlv 2024-03-14 20:26:28 +05:30
parent 076dc0bf8c
commit a16a7a773c
1 changed files with 1 additions and 1 deletions

View File

@ -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);
})
},