mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-03 12:36:02 +01:00
lol
O(log(n)) to O(1) and away
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user