Skip to content

Commit

Permalink
fix: Menu json response error
Browse files Browse the repository at this point in the history
  • Loading branch information
dogukanoksuz committed Sep 3, 2024
1 parent 6e1a6b0 commit e33456d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/Http/Controllers/API/MenuController.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ public function serverDetails(Server $server)
});
$server->is_favorite = (bool) user()->myFavorites()->where('server_id', $server->id)->exists();
$server->can_run_command = $server->canRunCommand();
$server = $server->toArray();

return response()->json($server);
}
Expand Down

0 comments on commit e33456d

Please sign in to comment.