mirror of
https://github.com/Karaka-Management/oms-Editor.git
synced 2026-02-16 02:08:40 +00:00
change createmodel function
This commit is contained in:
parent
356f554830
commit
60198589c9
|
|
@ -77,7 +77,7 @@ final class ApiController extends Controller
|
||||||
}
|
}
|
||||||
|
|
||||||
$doc = $this->createDocFromRequest($request);
|
$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);
|
$this->fillJsonResponse($request, $response, NotificationLevel::OK, 'Document', 'Document successfully created', $doc);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user