ffffng/server/jobs/mailQueueJob.js

16 lines
406 B
JavaScript
Raw Permalink Normal View History

'use strict';
2016-05-24 16:40:57 +02:00
angular.module('ffffng').factory('MailQueueJob', function (MailService, Logger) {
return {
run: function (callback) {
MailService.sendPendingMails(function (err) {
if (err) {
2016-05-24 16:40:57 +02:00
Logger.tag('mail', 'queue').error('Error sending pending mails:', err);
}
callback();
});
}
};
});