mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-06 14:05:46 +01:00
added daily cleaning of reset tokens #2708
This commit is contained in:
@@ -18,9 +18,7 @@ var async = require('async'),
|
||||
(function(Notifications) {
|
||||
|
||||
Notifications.init = function() {
|
||||
if (process.env.NODE_ENV === 'development') {
|
||||
winston.verbose('[notifications.init] Registering jobs.');
|
||||
}
|
||||
winston.verbose('[notifications.init] Registering jobs.');
|
||||
new cron('*/30 * * * *', Notifications.prune, null, true);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user