mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-17 21:30:31 +00:00
fix(server): rename term to
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
import { Container } from 'typedi';
|
||||
import { On, EventSubscriber } from 'event-dispatch';
|
||||
import events from '@/subscribers/events';
|
||||
import { PaymentReceiveNotifyBySms } from './PaymentReceivedSmsNotify';
|
||||
|
||||
@EventSubscriber()
|
||||
export default class SendSmsNotificationPaymentReceive {
|
||||
paymentReceiveNotifyBySms: PaymentReceiveNotifyBySms;
|
||||
|
||||
constructor() {
|
||||
this.paymentReceiveNotifyBySms = Container.get(PaymentReceiveNotifyBySms);
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
@On(events.paymentReceive.onNotifySms)
|
||||
async sendSmsNotificationOnceInvoiceNotify({
|
||||
paymentReceive,
|
||||
customer,
|
||||
}) {
|
||||
await this.paymentReceiveNotifyBySms.sendSmsNotification(
|
||||
paymentReceive,
|
||||
customer
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user