Skip to content

Commit

Permalink
fix: use app()->environment()
Browse files Browse the repository at this point in the history
  • Loading branch information
ast21 committed Nov 27, 2024
1 parent e350f30 commit 8cbf666
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Commands/SyncReportsFromErgkz.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public function handle()

private function getData(int $page = 1, int $perPage = 10): Collection
{
$response = Http::get(config('services.reports_from_ergkz.url'), [
$response = Http::get(config('services.reports_from_ergkz.url.' . app()->environment()), [
'start_above_id' => Document::query()->max('ergkz_id') ?? 1,
'enterprise_id' => config('services.reports_from_ergkz.enterprise_id'),
'category_id' => config('services.reports_from_ergkz.category_id'),
Expand Down

0 comments on commit 8cbf666

Please sign in to comment.