mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-18 13:50:31 +00:00
refactor: split the services to multiple service classes (#202)
This commit is contained in:
@@ -1,13 +1,13 @@
|
||||
import { Inject, Service } from 'typedi';
|
||||
import events from '@/subscribers/events';
|
||||
import SaleEstimateNotifyBySms from '@/services/Sales/Estimates/SaleEstimateSmsNotify';
|
||||
import { SaleEstimateNotifyBySms } from '@/services/Sales/Estimates/SaleEstimateSmsNotify';
|
||||
import { ISaleEstimateCreatedPayload } from '@/interfaces';
|
||||
import { runAfterTransaction } from '@/services/UnitOfWork/TransactionsHooks';
|
||||
|
||||
@Service()
|
||||
export default class SaleEstimateSmsNotificationSubscriber {
|
||||
@Inject()
|
||||
saleEstimateNotifyBySms: SaleEstimateNotifyBySms;
|
||||
private saleEstimateNotifyBySms: SaleEstimateNotifyBySms;
|
||||
|
||||
/**
|
||||
* Attaches events to handles.events.saleEstimate.onCreated
|
||||
|
||||
Reference in New Issue
Block a user