// @ts-nocheck
import { logger } from '%loggerServiceImports';
import { createQueue } from '%queueServiceImports';
export const sendEmailQueue = createQueue('send-email', {
    handler: async (job) => {
        const messageId = await TPL_EMAIL_ADAPTER.sendMail(job.data.message);
        logger.info({
            template: job.data.template,
            messageId,
        }, `Email sent successfully using ${TPL_EMAIL_ADAPTER.name}`);
    },
});
//# sourceMappingURL=send-email.queue.js.map