ffffng/server/jobs/monitoringMailsSendingJob.js

16 lines
450 B
JavaScript
Raw Normal View History

2016-05-24 23:32:04 +02:00
'use strict';
angular.module('ffffng').factory('MonitoringMailsSendingJob', function (MonitoringService, Logger) {
return {
run: function (callback) {
2016-05-24 23:32:04 +02:00
MonitoringService.sendMonitoringMails(function (err) {
if (err) {
Logger.tag('monitoring', 'mail-sending').error('Error sending monitoring mails:', err);
}
callback();
2016-05-24 23:32:04 +02:00
});
}
};
});