added daily cleaning of reset tokens #2708

This commit is contained in:
Julian Lam
2015-02-08 22:02:13 -05:00
parent 1843d0364e
commit c351261165
3 changed files with 20 additions and 5 deletions

View File

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