From fcfbc4d6d6e556ec086aa459731d609e38f0e5b3 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Sun, 31 May 2020 22:49:58 +0200 Subject: [PATCH] add ip support for auditor --- Controller/ApiController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Controller/ApiController.php b/Controller/ApiController.php index d7a4643..859d574 100644 --- a/Controller/ApiController.php +++ b/Controller/ApiController.php @@ -114,7 +114,7 @@ final class ApiController extends Controller $media = MediaController::createDbEntry($status, $request->getHeader()->getAccount()); $draw = $media !== null ? DrawImage::fromMedia($media) : null; - $this->createModel($request->getHeader()->getAccount(), $draw, DrawImageMapper::class, 'draw'); + $this->createModel($request->getHeader()->getAccount(), $draw, DrawImageMapper::class, 'draw', $request->getOrigin()); $this->fillJsonResponse($request, $response, NotificationLevel::OK, 'Draw', 'Draw successfully created.', $draw); }