mirror of
				https://github.com/NodeBB/NodeBB.git
				synced 2025-10-31 02:55:58 +01:00 
			
		
		
		
	crashing a lot less now, heh
This commit is contained in:
		| @@ -667,13 +667,13 @@ var bcrypt = require('bcrypt'), | ||||
| 		}); | ||||
| 	}; | ||||
|  | ||||
| 	User.count = function(socket) { | ||||
| 	User.count = function(callback) { | ||||
| 		db.getObjectField('global', 'userCount', function(err, count) { | ||||
| 			if(err) { | ||||
| 				return; | ||||
| 			} | ||||
|  | ||||
| 			socket.emit('user.count', { | ||||
| 			callback({ | ||||
| 				count: count ? count : 0 | ||||
| 			}); | ||||
| 		}); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user