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