get value of suspended (#922)

This commit is contained in:
Charles 2025-01-16 21:18:00 -05:00 committed by GitHub
parent ad1a9cd33f
commit cbacc18e56
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -490,7 +490,7 @@ class Server extends Model
public function condition(): Attribute
{
return Attribute::make(
get: fn () => $this->isSuspended() ? ServerState::Suspended : $this->status->value ?? $this->retrieveStatus(),
get: fn () => $this->isSuspended() ? ServerState::Suspended->value : $this->status->value ?? $this->retrieveStatus(),
);
}