when new notifications are pushed to uids clear their old notifications.
This commit is contained in:
barisusakli
2014-09-10 20:51:16 -04:00
parent 5204dc1e23
commit 35a903f9c8
4 changed files with 24 additions and 0 deletions

View File

@@ -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]);