add async to .catch in createStore
This commit is contained in:
		
							parent
							
								
									076dc0bf8c
								
							
						
					
					
						commit
						a16a7a773c
					
				|  | @ -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); | ||||
|             }) | ||||
|         }, | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue