v1.18.x
psychobunny 10 years ago
commit 6867c10058

@ -247,7 +247,7 @@ var async = require('async'),
}
if (!Array.isArray(nids) || !nids.length) {
return events.log('No notifications to prune');
return;
}
var keys = nids.map(function(nid) {
@ -256,8 +256,6 @@ var async = require('async'),
numPruned = nids.length;
events.log('Notification pruning. Expired Nids = ' + numPruned);
async.parallel([
function(next) {
db.sortedSetRemove('notifications', nids, next);

Loading…
Cancel
Save