more fixes

This commit is contained in:
Baris Soner Usakli
2014-01-16 17:07:34 -05:00
parent 2893693d17
commit 7470c1bbd9
3 changed files with 25 additions and 16 deletions

View File

@@ -673,10 +673,10 @@ var bcrypt = require('bcrypt'),
User.count = function(callback) {
db.getObjectField('global', 'userCount', function(err, count) {
if(err) {
return;
return callback(err);
}
callback({
callback(null, {
count: count ? count : 0
});
});