refactor: split the services to multiple service classes (#202)

This commit is contained in:
Ahmed Bouhuolia
2023-08-10 20:29:39 +02:00
committed by GitHub
parent ffef627dc3
commit 26c6ca9e36
150 changed files with 7188 additions and 5007 deletions

View File

@@ -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