dont add guests to users:postcount zset

This commit is contained in:
Barış Soner Uşaklı
2015-03-26 13:00:26 -04:00
parent c9b98306e0
commit e0b4a35a25

View File

@@ -84,6 +84,9 @@ module.exports = function(User) {
if (err) {
return callback(err);
}
if (!parseInt(uid, 10)) {
return callback();
}
db.sortedSetAdd('users:postcount', newpostcount, uid, callback);
});
};