Skip to content

Commit f504676

Browse files
authored
🚑 Fix end of day (#3302)
1 parent 597ad64 commit f504676

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

app/Http/Controllers/Backend/StatisticController.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ public static function getTopTravelCategoryByUser(
6868
int $limit = 10
6969
): Collection {
7070
$from->startOfDay();
71-
$until->endOdDay();
71+
$until->endOfDay();
7272

7373
if ($from->isAfter($until)) {
7474
throw new InvalidArgumentException('since cannot be after until');
@@ -113,7 +113,7 @@ public static function getTopTripOperatorByUser(
113113
int $limit = 10
114114
): Collection {
115115
$from->startOfDay();
116-
$until->endOdDay();
116+
$until->endOfDay();
117117

118118
if ($from->isAfter($until)) {
119119
throw new InvalidArgumentException('since cannot be after until');
@@ -153,7 +153,7 @@ public static function getTopTripOperatorByUser(
153153
*/
154154
public static function getDailyTravelTimeByUser(User $user, Carbon $from, Carbon $until): Collection {
155155
$from->startOfDay();
156-
$until->endOdDay();
156+
$until->endOfDay();
157157

158158
if ($from->isAfter($until)) {
159159
throw new InvalidArgumentException('since cannot be after until');
@@ -212,7 +212,7 @@ public static function getDailyTravelTimeByUser(User $user, Carbon $from, Carbon
212212
*/
213213
public static function getTravelPurposes(User $user, Carbon $from, Carbon $until): Collection {
214214
$from->startOfDay();
215-
$until->endOdDay();
215+
$until->endOfDay();
216216

217217
if ($from->isAfter($until)) {
218218
throw new InvalidArgumentException('since cannot be after until');

0 commit comments

Comments
 (0)