Update Server.php

Fails rules, will look at later in time.
This commit is contained in:
AreYouScared 2020-03-29 17:00:50 -04:00
parent b351c07d34
commit 5f90e5f104

View file

@ -105,7 +105,6 @@ class Server extends Validable
'swap' => 'required|numeric|min:-1', 'swap' => 'required|numeric|min:-1',
'io' => 'required|numeric|between:10,1000', 'io' => 'required|numeric|between:10,1000',
'cpu' => 'required|numeric|min:0', 'cpu' => 'required|numeric|min:0',
'threads' => 'present|nullable|regex:/^([\d-,]+)$/',
'oom_disabled' => 'sometimes|boolean', 'oom_disabled' => 'sometimes|boolean',
'disk' => 'required|numeric|min:0', 'disk' => 'required|numeric|min:0',
'allocation_id' => 'required|bail|unique:servers|exists:allocations,id', 'allocation_id' => 'required|bail|unique:servers|exists:allocations,id',
@ -135,7 +134,6 @@ class Server extends Validable
'disk' => 'integer', 'disk' => 'integer',
'io' => 'integer', 'io' => 'integer',
'cpu' => 'integer', 'cpu' => 'integer',
'threads' => 'string',
'oom_disabled' => 'boolean', 'oom_disabled' => 'boolean',
'allocation_id' => 'integer', 'allocation_id' => 'integer',
'nest_id' => 'integer', 'nest_id' => 'integer',