Fix data pack assignment
This commit is contained in:
parent
84f87680d8
commit
fd360f6475
1 changed files with 4 additions and 4 deletions
|
@ -79,9 +79,9 @@ class ServerRepository
|
|||
'io' => 'required|numeric|min:10|max:1000',
|
||||
'cpu' => 'required|numeric|min:0',
|
||||
'disk' => 'required|numeric|min:0',
|
||||
'service' => 'bail|required|numeric|min:1|exists:services,id',
|
||||
'option' => 'bail|required|numeric|min:1|exists:service_options,id',
|
||||
'pack' => 'bail|required|numeric|min:0',
|
||||
'service' => 'required|numeric|min:1|exists:services,id',
|
||||
'option' => 'required|numeric|min:1|exists:service_options,id',
|
||||
'pack' => 'required|numeric|min:0',
|
||||
'startup' => 'string',
|
||||
'custom_image_name' => 'required_if:use_custom_image,on',
|
||||
'auto_deploy' => 'sometimes|boolean',
|
||||
|
@ -158,7 +158,7 @@ class ServerRepository
|
|||
}
|
||||
|
||||
// Validate the Pack
|
||||
if ($data['pack'] === 0) {
|
||||
if ($data['pack'] == 0) {
|
||||
$data['pack'] = null;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue