Skip to content

Commit

Permalink
empty
Browse files Browse the repository at this point in the history
  • Loading branch information
MohamadSH committed Sep 29, 2019
1 parent 5d77e77 commit d0c1972
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/Http/Controllers/Api/UserVoteOptionContoller.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ public function index(Request $request)
*/
public function store(InsertUserVoteRequest $request)
{

$option = Option::Find($request->input('option_id'));
if(!isset($option)){
return response()->json($this->setErrorResponse(myResponse::OPTION_NOT_EXISTS, __('The given data was invalid.'),
Expand Down

0 comments on commit d0c1972

Please sign in to comment.