mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-06 14:05:46 +01:00
less event logs for notif pruning
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user