Skip to content

Commit

Permalink
get value of suspended (#922)
Browse files Browse the repository at this point in the history
  • Loading branch information
notAreYouScared authored Jan 17, 2025
1 parent ad1a9cd commit cbacc18
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Models/Server.php
Original file line number Diff line number Diff line change
Expand Up @@ -490,7 +490,7 @@ public function formatResource(string $resourceKey, bool $limit = false, ServerR
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(),
);
}

Expand Down

0 comments on commit cbacc18

Please sign in to comment.