mirror of
https://github.com/pelican-dev/panel.git
synced 2025-05-28 09:14:44 +02:00
Always default this
This commit is contained in:
parent
ea146f4715
commit
7ffd7019a2
@ -294,7 +294,7 @@ class Node extends Model
|
||||
{
|
||||
return cache()->remember("nodes.$this->id.servers", now()->addMinute(), function () {
|
||||
try {
|
||||
return Http::daemon($this)->connectTimeout(1)->timeout(1)->get('/api/servers')->json();
|
||||
return Http::daemon($this)->connectTimeout(1)->timeout(1)->get('/api/servers')->json() ?? [];
|
||||
} catch (Exception) {
|
||||
return [];
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user