Fix build limit management in Admin CP

This commit is contained in:
Dane Everitt 2018-03-02 19:49:09 -06:00
parent 060c64263b
commit c6137db529
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53

View file

@ -498,15 +498,17 @@ class ServersController extends Controller
* @param \Illuminate\Http\Request $request
* @param \Pterodactyl\Models\Server $server
* @return \Illuminate\Http\RedirectResponse
*
* @throws \Pterodactyl\Exceptions\DisplayException
* @throws \Pterodactyl\Exceptions\Model\DataValidationException
* @internal param int $id
* @throws \Pterodactyl\Exceptions\Repository\RecordNotFoundException
*/
public function updateBuild(Request $request, Server $server)
{
$this->buildModificationService->handle($server, $request->only([
'allocation_id', 'add_allocations', 'remove_allocations',
'memory', 'swap', 'io', 'cpu', 'disk',
'database_limit', 'allocation_limit',
]));
$this->alert->success(trans('admin/server.alerts.build_updated'))->flash();