Skip to content

Commit 0d792f0

Browse files
committed
Properly handle no passed packs.
1 parent fee3f3d commit 0d792f0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/Repositories/ServerRepository.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ public function create(array $data)
9393
'disk' => 'required|numeric|min:0',
9494
'service' => 'required|numeric|min:1|exists:services,id',
9595
'option' => 'required|numeric|min:1|exists:service_options,id',
96-
'pack' => 'required|numeric|min:0',
96+
'pack' => 'sometimes|nullable|numeric|min:0',
9797
'startup' => 'string',
9898
'custom_image_name' => 'required_if:use_custom_image,on',
9999
'auto_deploy' => 'sometimes|boolean',

0 commit comments

Comments
 (0)