Skip to content

Commit

Permalink
Merge pull request #4 from AplinkosMinisterija/new-status-flow
Browse files Browse the repository at this point in the history
Update status statistics logic
  • Loading branch information
Ignas-rgb authored Feb 13, 2024
2 parents b8f2df4 + 9b117f9 commit 296c73d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
4 changes: 0 additions & 4 deletions src/report/dto/report-statistics.dto.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
3 changes: 1 addition & 2 deletions src/report/report.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'),
);
}
Expand Down

0 comments on commit 296c73d

Please sign in to comment.