Skip to content

Commit

Permalink
Update AnswerController.php
Browse files Browse the repository at this point in the history
  • Loading branch information
SensvanAert authored Dec 6, 2023
1 parent 67b1d5b commit 98c6ad8
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions code/webapp/app/Http/Controllers/Api/AnswerController.php
Original file line number Diff line number Diff line change
Expand Up @@ -202,11 +202,6 @@ public function create()
*/
public function store(StoreAnswerRequest $request)
{
if($request->user_id == null){
$user = auth()->user();
$id = $user->id;
$request->merge(["user_id", $id]);
}
$answer = Answer::create($request->all());

return response()->json(
Expand Down

0 comments on commit 98c6ad8

Please sign in to comment.