From 9b117f9c06e1d536656068800f7dd80955dc2f48 Mon Sep 17 00:00:00 2001 From: Ignas-rgb <61393113+Ignas-rgb@users.noreply.github.com> Date: Tue, 13 Feb 2024 14:29:50 +0200 Subject: [PATCH] Update status statistics logic --- src/report/dto/report-statistics.dto.ts | 4 ---- src/report/report.service.ts | 3 +-- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/src/report/dto/report-statistics.dto.ts b/src/report/dto/report-statistics.dto.ts index ea7a864..ede17c4 100644 --- a/src/report/dto/report-statistics.dto.ts +++ b/src/report/dto/report-statistics.dto.ts @@ -8,21 +8,17 @@ export class ReportStatisticsDto { @ApiProperty({ type: 'integer' }) totalInvestigatedReports: number; @ApiProperty({ type: 'integer' }) - totalCleanedReports: number; - @ApiProperty({ type: 'integer' }) totalFalseReports: number; constructor( totalSentReports: number, totalInInvestigationReports: number, totalInvestigatedReports: number, - totalCleanedReports: number, totalFalseReports: number, ) { this.totalSentReports = totalSentReports; this.totalInInvestigationReports = totalInInvestigationReports; this.totalInvestigatedReports = totalInvestigatedReports; - this.totalCleanedReports = totalCleanedReports; this.totalFalseReports = totalFalseReports; } } diff --git a/src/report/report.service.ts b/src/report/report.service.ts index efb683f..8e932dd 100644 --- a/src/report/report.service.ts +++ b/src/report/report.service.ts @@ -44,8 +44,7 @@ export class ReportService { return new ReportStatisticsDto( ReportService.filterStatistics(e, 'gautas'), ReportService.filterStatistics(e, 'tiriamas'), - ReportService.filterStatistics(e, 'ištirtas'), - ReportService.filterStatistics(e, 'sutvarkyta'), + ReportService.filterStatistics(e, 'išspręsta'), ReportService.filterStatistics(e, 'nepasitvirtino'), ); }