pos-be/src/modules/reports/report/report.module.ts

19 lines
590 B
TypeScript

import { Module } from '@nestjs/common';
import { ReportController } from './report.controller';
import { ReportService } from './report.service';
import { TypeOrmModule } from '@nestjs/typeorm';
import { ExportReportHistoryModel } from '../shared/models/export-report-history.model';
import { CONNECTION_NAME } from 'src/core/strings/constants/base.constants';
@Module({
imports: [
TypeOrmModule.forFeature(
[ExportReportHistoryModel],
CONNECTION_NAME.DEFAULT,
),
],
controllers: [ReportController],
providers: [ReportService],
})
export class ReportModule {}