mirror of
				https://github.com/NodeBB/NodeBB.git
				synced 2025-11-03 20:45:58 +01:00 
			
		
		
		
	break up sync operation
This commit is contained in:
		@@ -492,7 +492,7 @@ module.exports = function (db, module) {
 | 
			
		||||
						}
 | 
			
		||||
 | 
			
		||||
						if (ids.length < options.batch && (!done || ids.length === 0)) {
 | 
			
		||||
							return next(null);
 | 
			
		||||
							return process.nextTick(next, null);
 | 
			
		||||
						}
 | 
			
		||||
						process(ids, function (err) {
 | 
			
		||||
							_next(err);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user