mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-06 14:05:46 +01:00
cleanup and optimize notifications
This commit is contained in:
@@ -264,7 +264,7 @@ var async = require('async'),
|
||||
};
|
||||
|
||||
Notifications.markAllRead = function(uid, callback) {
|
||||
db.getSortedSetRange('uid:' + uid + ':notifications:unread', 0, 99, function(err, nids) {
|
||||
db.getSortedSetRevRange('uid:' + uid + ':notifications:unread', 0, 99, function(err, nids) {
|
||||
if (err) {
|
||||
return callback(err);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user