|
|
@ -15,8 +15,9 @@ var batch = require('./batch');
|
|
|
|
var plugins = require('./plugins');
|
|
|
|
var plugins = require('./plugins');
|
|
|
|
var utils = require('./utils');
|
|
|
|
var utils = require('./utils');
|
|
|
|
|
|
|
|
|
|
|
|
(function (Notifications) {
|
|
|
|
var Notifications = module.exports;
|
|
|
|
Notifications.init = function () {
|
|
|
|
|
|
|
|
|
|
|
|
Notifications.startJobs = function () {
|
|
|
|
winston.verbose('[notifications.init] Registering jobs.');
|
|
|
|
winston.verbose('[notifications.init] Registering jobs.');
|
|
|
|
new cron('*/30 * * * *', Notifications.prune, null, true);
|
|
|
|
new cron('*/30 * * * *', Notifications.prune, null, true);
|
|
|
|
};
|
|
|
|
};
|
|
|
@ -510,5 +511,3 @@ var utils = require('./utils');
|
|
|
|
callback(err, data.notifications);
|
|
|
|
callback(err, data.notifications);
|
|
|
|
});
|
|
|
|
});
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}(exports));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|