Skip to content

Commit

Permalink
Make hostname optional
Browse files Browse the repository at this point in the history
  • Loading branch information
kevnk committed Jan 16, 2024
1 parent c990e63 commit f3054e2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Http/Controllers/FAController.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,9 @@ public function index(Request $request)
'limit' => 100,
'sort_by' => $sortOrder,
'date_from' => $interval,
'filters' => '[{"property":"hostname","operator":"is","value":"' . config('fa.fa_hostname') . '"}]',
'filters' => config('fa.fa_hostname')
? '[{"property":"hostname","operator":"is","value":"' . config('fa.fa_hostname') . '"}]'
: '',
])
->collect());

Expand Down

0 comments on commit f3054e2

Please sign in to comment.