mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-17 13:20:31 +00:00
refactor(nestjs): export module
This commit is contained in:
@@ -27,6 +27,7 @@ import { GetBillsService } from './queries/GetBills.service';
|
||||
import { DynamicListModule } from '../DynamicListing/DynamicList.module';
|
||||
import { InventoryCostModule } from '../InventoryCost/InventoryCost.module';
|
||||
import { BillsExportable } from './commands/BillsExportable';
|
||||
import { BillsImportable } from './commands/BillsImportable';
|
||||
|
||||
@Module({
|
||||
imports: [
|
||||
@@ -58,8 +59,10 @@ import { BillsExportable } from './commands/BillsExportable';
|
||||
BillGLEntriesSubscriber,
|
||||
BillInventoryTransactions,
|
||||
BillWriteInventoryTransactionsSubscriber,
|
||||
BillsExportable
|
||||
BillsExportable,
|
||||
BillsImportable
|
||||
],
|
||||
controllers: [BillsController],
|
||||
exports: [BillsExportable, BillsImportable],
|
||||
})
|
||||
export class BillsModule {}
|
||||
|
||||
@@ -4,8 +4,11 @@ import { Injectable } from '@nestjs/common';
|
||||
import { Exportable } from '@/modules/Export/Exportable';
|
||||
import { IBillsFilter } from '../Bills.types';
|
||||
import { EXPORT_SIZE_LIMIT } from '@/modules/Export/constants';
|
||||
import { ExportableService } from '@/modules/Export/decorators/ExportableModel.decorator';
|
||||
import { Bill } from '../models/Bill';
|
||||
|
||||
@Injectable()
|
||||
@ExportableService({ name: Bill.name })
|
||||
export class BillsExportable extends Exportable {
|
||||
constructor(private readonly billsApplication: BillsApplication) {
|
||||
super();
|
||||
|
||||
Reference in New Issue
Block a user