Always default this

This commit is contained in:
Lance Pioch 2024-04-25 17:35:35 -04:00
parent ea146f4715
commit 7ffd7019a2

View File

@ -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 [];
}