From dd48a94241534c704fd2e92d5cdf0fbb39423e7f Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Mon, 8 Jul 2019 19:21:23 +0200 Subject: [PATCH] change createmodel function --- Controller/ApiController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Controller/ApiController.php b/Controller/ApiController.php index 493523d..2845016 100644 --- a/Controller/ApiController.php +++ b/Controller/ApiController.php @@ -105,7 +105,7 @@ final class ApiController extends Controller $media = MediaController::createDbEntry($status, $request->getHeader()->getAccount()); $draw = DrawImage::fromMedia($media); - $this->createModel($request, $draw, DrawImageMapper::class, 'draw'); + $this->createModel($request->getHeader()->getAccount(), $draw, DrawImageMapper::class, 'draw'); $this->fillJsonResponse($request, $response, NotificationLevel::OK, 'Draw', 'Draw successfully created.', $draw); }