2022-08-23 20:08:53 +02:00
|
|
|
import * as MailService from "../services/mailService";
|
|
|
|
import { jobResultOkay } from "./scheduler";
|
2020-04-08 23:41:04 +02:00
|
|
|
|
|
|
|
export default {
|
2022-08-23 20:08:53 +02:00
|
|
|
name: "MailQueueJob",
|
|
|
|
description: "Send pending emails (up to 5 attempts in case of failures).",
|
2020-04-08 23:41:04 +02:00
|
|
|
|
2020-06-30 17:08:24 +02:00
|
|
|
async run() {
|
|
|
|
await MailService.sendPendingMails();
|
|
|
|
return jobResultOkay();
|
|
|
|
},
|
|
|
|
};
|