remove duplicate statistic events (#2776)

This commit is contained in:
Kevin Papst
2021-09-18 13:15:23 +02:00
committed by GitHub
parent 54d7c4490f
commit 934a7855b9
2 changed files with 0 additions and 7 deletions

View File

@@ -192,7 +192,6 @@ class ProjectStatisticService
public function getBudgetStatisticModel(Project $project, DateTime $today): ProjectBudgetStatisticModel
{
$stats = new ProjectBudgetStatisticModel($project);
$stats->setStatisticTotal($this->getProjectStatistics($project));
$begin = null;
@@ -206,9 +205,6 @@ class ProjectStatisticService
$stats->setStatistic($this->getProjectStatistics($project, $begin, $end));
$event = new ProjectBudgetStatisticEvent([$stats], $begin, $end);
$this->dispatcher->dispatch($event);
return $stats;
}