mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-01-28 18:29:50 +01:00
closes #2074
when new notifications are pushed to uids clear their old notifications.
This commit is contained in:
@@ -51,6 +51,10 @@ module.exports = function(db, module) {
|
||||
}, callback);
|
||||
};
|
||||
|
||||
module.sortedSetsRemoveRangeByScore = function(keys, min, max, callback) {
|
||||
throw new Error('not implemented');
|
||||
};
|
||||
|
||||
function flattenSortedSet(set, callback) {
|
||||
callback(null, !set.length ? [] : set.reduce(function(a, b) {
|
||||
return (a.length ? a : [a.value]).concat([b.value]);
|
||||
|
||||
Reference in New Issue
Block a user