ffffng/server/jobs/MailQueueJob.ts

13 lines
332 B
TypeScript
Raw Permalink Normal View History

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();
},
};