mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-18 22:00:31 +00:00
refactor: wip to nestjs
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
// import Container, { Service } from 'typedi';
|
||||
// import events from '@/subscribers/events';
|
||||
// import { SendSaleInvoiceMail } from './SendSaleInvoiceMail';
|
||||
|
||||
// @Service()
|
||||
// export class SendSaleInvoiceMailJob {
|
||||
// /**
|
||||
// * Constructor method.
|
||||
// */
|
||||
// constructor(agenda) {
|
||||
// agenda.define(
|
||||
// 'sale-invoice-mail-send',
|
||||
// { priority: 'high', concurrency: 2 },
|
||||
// this.handler
|
||||
// );
|
||||
// }
|
||||
|
||||
// /**
|
||||
// * Triggers sending invoice mail.
|
||||
// */
|
||||
// private handler = async (job, done: Function) => {
|
||||
// const { tenantId, saleInvoiceId, messageOptions } = job.attrs.data;
|
||||
// const sendInvoiceMail = Container.get(SendSaleInvoiceMail);
|
||||
|
||||
// try {
|
||||
// await sendInvoiceMail.sendMail(tenantId, saleInvoiceId, messageOptions);
|
||||
// done();
|
||||
// } catch (error) {
|
||||
// console.log(error);
|
||||
// done(error);
|
||||
// }
|
||||
// };
|
||||
// }
|
||||
Reference in New Issue
Block a user