change createmodel function

This commit is contained in:
Dennis Eichhorn 2019-07-08 19:21:23 +02:00
parent 356f554830
commit 60198589c9

View File

@ -77,7 +77,7 @@ final class ApiController extends Controller
}
$doc = $this->createDocFromRequest($request);
$this->createModel($request, $doc, EditorDocMapper::class, 'doc');
$this->createModel($request->getHeader()->getAccount(), $doc, EditorDocMapper::class, 'doc');
$this->fillJsonResponse($request, $response, NotificationLevel::OK, 'Document', 'Document successfully created', $doc);
}