mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-01 03:26:04 +01:00
notifications.prune
run every hour dont get more than 500 notifications
This commit is contained in:
@@ -74,6 +74,11 @@ module.exports = function(db, module) {
|
||||
db.collection('objects').remove({_key:key}, callback);
|
||||
};
|
||||
|
||||
module.deleteAll = function(keys, callback) {
|
||||
callback = callback || helpers.noop;
|
||||
db.collection('objects').remove({_key: {$in: keys}}, callback);
|
||||
};
|
||||
|
||||
module.get = function(key, callback) {
|
||||
module.getObjectField(key, 'value', callback);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user