ffffng/server/jobs/mailQueueJob.js
2016-05-24 16:40:57 +02:00

14 lines
369 B
JavaScript

'use strict';
angular.module('ffffng').factory('MailQueueJob', function (MailService, Logger) {
return {
run: function () {
MailService.sendPendingMails(function (err) {
if (err) {
Logger.tag('mail', 'queue').error('Error sending pending mails:', err);
}
});
}
};
});