mirror of
https://github.com/Karaka-Management/oms-News.git
synced 2026-02-16 00:18:41 +00:00
Quick backup before crash
This commit is contained in:
parent
d21b093f5b
commit
1007c02bb5
|
|
@ -218,6 +218,7 @@ final class ApiController extends Controller
|
||||||
$this->createModel($request->header->account, $ref, ReferenceMapper::class, 'media_reference', $request->getOrigin());
|
$this->createModel($request->header->account, $ref, ReferenceMapper::class, 'media_reference', $request->getOrigin());
|
||||||
|
|
||||||
if ($collection === null) {
|
if ($collection === null) {
|
||||||
|
/** @var \Modules\Media\Models\Collection $collection */
|
||||||
$collection = MediaMapper::getParentCollection($path)->limit(1)->execute();
|
$collection = MediaMapper::getParentCollection($path)->limit(1)->execute();
|
||||||
|
|
||||||
if ($collection->id === 0) {
|
if ($collection->id === 0) {
|
||||||
|
|
@ -269,6 +270,7 @@ final class ApiController extends Controller
|
||||||
$this->createModel($request->header->account, $ref, ReferenceMapper::class, 'media_reference', $request->getOrigin());
|
$this->createModel($request->header->account, $ref, ReferenceMapper::class, 'media_reference', $request->getOrigin());
|
||||||
|
|
||||||
if ($collection === null) {
|
if ($collection === null) {
|
||||||
|
/** @var \Modules\Media\Models\Collection $collection */
|
||||||
$collection = MediaMapper::getParentCollection($path)->limit(1)->execute();
|
$collection = MediaMapper::getParentCollection($path)->limit(1)->execute();
|
||||||
|
|
||||||
if ($collection->id === 0) {
|
if ($collection->id === 0) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user