Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

This file was deleted.

3 changes: 0 additions & 3 deletions src/modules/internal/internal.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ import { PortfolioCorrectionModule } from '../portfolio-correction/portfolio-cor
import { AiClientExceptionFilter } from 'src/common/filters/ai-client-exception.filter';
import { InternalCorrectionResultFacade } from './application/facades/internal-correction-result.facade';
import { InternalPdfExtractionResultController } from './presentation/internal-pdf-extraction-result.controller';
import { InternalCorrectionFacade } from './application/facades/internal-correction.facade';

@Module({
imports: [InsightModule, PortfolioModule, PortfolioCorrectionModule, ExperienceModule],
controllers: [
Expand All @@ -24,7 +22,6 @@ import { InternalCorrectionFacade } from './application/facades/internal-correct
providers: [
InternalApiKeyGuard,
InternalPortfolioFacade,
InternalCorrectionFacade,
AiClientExceptionFilter,
InternalCorrectionResultFacade,
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import { ApiCommonErrorResponse, ApiCommonResponse } from 'src/common/decorators
import { ErrorCode } from 'src/common/exceptions/error-code.enum';
import { PortfolioCorrectionService } from 'src/modules/portfolio-correction/application/services/portfolio-correction.service';
import { InternalApiKeyGuard } from 'src/common/guards/internal-api-key.guard';
import { InternalCorrectionFacade } from '../application/facades/internal-correction.facade';
import {
InternalCorrectionResDTO,
UpdateCompanyInsightInternalReqDTO,
Expand All @@ -15,10 +14,7 @@ import {
@ApiTags('Internal - Corrections')
@Controller('corrections')
export class InternalCorrectionController {
constructor(
private readonly portfolioCorrectionService: PortfolioCorrectionService,
private readonly internalCorrectionFacade: InternalCorrectionFacade
) {}
constructor(private readonly portfolioCorrectionService: PortfolioCorrectionService) {}

@Get(':correctionId')
@Public()
Expand All @@ -39,7 +35,7 @@ export class InternalCorrectionController {
@Param('correctionId', ParseIntPipe) correctionId: number
): Promise<InternalCorrectionResDTO> {
const payload =
await this.internalCorrectionFacade.getInternalCorrectionDetail(correctionId);
await this.portfolioCorrectionService.getInternalCorrectionDetail(correctionId);
return InternalCorrectionResDTO.from(payload);
}

Expand Down
Loading