mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-06 22:15:48 +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) {
|
if (!Array.isArray(nids) || !nids.length) {
|
||||||
return events.log('No notifications to prune');
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
var keys = nids.map(function(nid) {
|
var keys = nids.map(function(nid) {
|
||||||
@@ -256,8 +256,6 @@ var async = require('async'),
|
|||||||
|
|
||||||
numPruned = nids.length;
|
numPruned = nids.length;
|
||||||
|
|
||||||
events.log('Notification pruning. Expired Nids = ' + numPruned);
|
|
||||||
|
|
||||||
async.parallel([
|
async.parallel([
|
||||||
function(next) {
|
function(next) {
|
||||||
db.sortedSetRemove('notifications', nids, next);
|
db.sortedSetRemove('notifications', nids, next);
|
||||||
|
|||||||
Reference in New Issue
Block a user