1
1
mirror of https://github.com/pterodactyl/panel.git synced 2024-10-27 20:32:28 +01:00

fix api /servers/{id}/build

remove unrelated error thrown every time
This commit is contained in:
Jakob 2016-11-30 12:26:23 +01:00 committed by GitHub
parent 93d9efb7d0
commit 03c6f986d2

View File

@ -221,8 +221,6 @@ class ServerController extends BaseController
public function build(Request $request, $id)
{
try {
throw new BadRequestHttpException('There was an error while attempting to add this node to the system.');
$server = new ServerRepository;
$server->changeBuild($id, $request->all());
return Models\Server::findOrFail($id);