O(log(n)) to O(1) and away
v1.18.x
barisusakli 11 years ago
parent d411ed5c28
commit 24ea74dc41

@ -226,7 +226,7 @@ var async = require('async'),
};
UserNotifications.getUnreadCount = function(uid, callback) {
db.sortedSetCount('uid:' + uid + ':notifications:unread', -Infinity, Infinity, callback);
db.sortedSetCard('uid:' + uid + ':notifications:unread', callback);
};
UserNotifications.getUnreadByField = function(uid, field, value, callback) {

Loading…
Cancel
Save