mirror of
https://github.com/Karaka-Management/oms-Draw.git
synced 2026-01-11 14:28:40 +00:00
change createmodel function
This commit is contained in:
parent
170c9e6f9d
commit
dd48a94241
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user