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 () {
|
return cache()->remember("nodes.$this->id.servers", now()->addMinute(), function () {
|
||||||
try {
|
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) {
|
} catch (Exception) {
|
||||||
return [];
|
return [];
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user