Skip to content

Commit

Permalink
Fix ID validation in requests
Browse files Browse the repository at this point in the history
  • Loading branch information
mzur committed Sep 1, 2021
1 parent cb258b5 commit 6daa078
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Http/Requests/ComputeImage.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public function rules()
{
return [
'distance' => 'required|numeric|min:1',
'label_id' => 'required|id|exists:labels,id',
'label_id' => 'required|integer|exists:labels,id',
];
}

Expand Down
2 changes: 1 addition & 1 deletion src/Http/Requests/ComputeVolume.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public function rules()
{
return [
'distance' => 'required|numeric|min:1',
'label_id' => 'required|id|exists:labels,id',
'label_id' => 'required|integer|exists:labels,id',
];
}

Expand Down

0 comments on commit 6daa078

Please sign in to comment.