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 0c7bea3 commit 6ad49a9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Http/Requests/StoreAnnotationAssistanceRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ public function authorize()
public function rules()
{
return [
'annotation_id' => 'required|id|exists:image_annotations,id',
'receiver_id' => 'nullable|id|exists:users,id',
'annotation_id' => 'required|integer|exists:image_annotations,id',
'receiver_id' => 'nullable|integer|exists:users,id',
'request_text' => 'required',
'request_labels' => 'array',
];
Expand Down

0 comments on commit 6ad49a9

Please sign in to comment.