mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-16 21:00:31 +00:00
refactor(nestjs): add importable service to other modules
This commit is contained in:
@@ -3,8 +3,11 @@ import { PaymentReceivesApplication } from '../PaymentReceived.application';
|
||||
import { IPaymentsReceivedFilter } from '../types/PaymentReceived.types';
|
||||
import { EXPORT_SIZE_LIMIT } from '@/modules/Export/constants';
|
||||
import { Exportable } from '@/modules/Export/Exportable';
|
||||
import { ExportableService } from '@/modules/Export/decorators/ExportableModel.decorator';
|
||||
import { PaymentReceived } from '../models/PaymentReceived';
|
||||
|
||||
@Injectable()
|
||||
@ExportableService({ name: PaymentReceived.name })
|
||||
export class PaymentsReceivedExportable extends Exportable {
|
||||
constructor(private readonly paymentReceivedApp: PaymentReceivesApplication) {
|
||||
super();
|
||||
|
||||
@@ -4,8 +4,11 @@ import { Injectable } from '@nestjs/common';
|
||||
import { PaymentsReceiveSampleData } from '../constants';
|
||||
import { CreatePaymentReceivedService } from './CreatePaymentReceived.serivce';
|
||||
import { Importable } from '@/modules/Import/Importable';
|
||||
import { ImportableService } from '@/modules/Import/decorators/Import.decorator';
|
||||
import { PaymentReceived } from '../models/PaymentReceived';
|
||||
|
||||
@Injectable()
|
||||
@ImportableService({ name: PaymentReceived.name })
|
||||
export class PaymentsReceivedImportable extends Importable {
|
||||
constructor(
|
||||
private readonly createPaymentReceiveService: CreatePaymentReceivedService,
|
||||
|
||||
Reference in New Issue
Block a user