Fixed broken test

This commit is contained in:
Constantin Graf
2024-08-27 17:11:43 +02:00
committed by Constantin Graf
parent ee77de04ef
commit 0245eccaeb
2 changed files with 12 additions and 0 deletions

View File

@@ -65,6 +65,12 @@ class TimeEntryAggregationService
if ($groupBy !== null) {
$timeEntriesQuery->groupBy($groupBy);
}
if ($group1Select !== null) {
$timeEntriesQuery->orderBy('group_1');
if ($group2Select !== null) {
$timeEntriesQuery->orderBy('group_2');
}
}
$timeEntriesAggregates = $timeEntriesQuery->get();