Skip to content

Commit 76814e2

Browse files
committed
Merge remote-tracking branch 'origin/main'
2 parents 8925864 + d7ee87a commit 76814e2

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

cncnet-api/app/Http/Controllers/ApiLadderController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -854,7 +854,7 @@ public function getLadderRecentGames(Request $request, string $cncnetGame = null
854854
}
855855

856856
$date = $request->date ?? Carbon::now()->format("m-Y");
857-
$response = $this->ladderService->getGamesFormattedForEloService($date, $cncnetGame, 200, $request->query());
857+
$response = $this->ladderService->getGamesFormattedForEloService($date, $cncnetGame, $request->query(), 200);
858858

859859
return $response;
860860
}

cncnet-api/app/Http/Services/LadderService.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -501,7 +501,7 @@ public function getRecentErrorLadderGamesPaginated($date, $cncnetGame)
501501
* @throws InvalidArgumentException
502502
* @throws RuntimeException
503503
*/
504-
public function getGamesFormattedForEloService(string $date, string $cncnetGame, int $paginateCount = 200, string|array|null $requestQuery)
504+
public function getGamesFormattedForEloService(string $date, string $cncnetGame, string|array|null $requestQuery, int $paginateCount = 200)
505505
{
506506
$history = $this->getActiveLadderByDate($date, $cncnetGame);
507507
$games = \App\Models\Game::where("ladder_history_id", "=", $history->id)

cncnet-api/config/logging.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,13 @@
8989
'driver' => 'errorlog',
9090
'level' => env('LOG_LEVEL', 'debug'),
9191
],
92+
93+
'deprecations' => [
94+
'driver' => 'daily',
95+
'path' => storage_path('logs/laravel_DEPRECATIONS.log'),
96+
'level' => env('LOG_LEVEL', 'debug'),
97+
'days' => 7,
98+
],
9299
],
93100

94101
];

0 commit comments

Comments
 (0)