14 lines
369 B
JavaScript
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);
|
|
}
|
|
});
|
|
}
|
|
};
|
|
});
|