12 lines
329 B
TypeScript
12 lines
329 B
TypeScript
import * as MailService from "../services/mailService"
|
|
import {jobResultOkay} from "./scheduler";
|
|
|
|
export default {
|
|
name: 'MailQueueJob',
|
|
description: 'Send pending emails (up to 5 attempts in case of failures).',
|
|
|
|
async run() {
|
|
await MailService.sendPendingMails();
|
|
return jobResultOkay();
|
|
},
|
|
};
|