mirror of
				https://github.com/NodeBB/NodeBB.git
				synced 2025-11-03 20:45:58 +01:00 
			
		
		
		
	chore: up mongo deps (#11375)
* chore: up mongo deps * mongodb 5.x no more callbacks
This commit is contained in:
		
				
					committed by
					
						
						GitHub
					
				
			
			
				
	
			
			
			
						parent
						
							75436dc02c
						
					
				
				
					commit
					5db037f1ea
				
			@@ -173,9 +173,8 @@ async function getCollectionStats(db) {
 | 
			
		||||
	return await Promise.all(items.map(collection => db.collection(collection.name).stats()));
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
mongoModule.close = function (callback) {
 | 
			
		||||
	callback = callback || function () {};
 | 
			
		||||
	client.close(err => callback(err));
 | 
			
		||||
mongoModule.close = async function () {
 | 
			
		||||
	await client.close();
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
require('./mongo/main')(mongoModule);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user