From 1007c02bb53f4b075df4eb26a4b58e7d0d123946 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Tue, 13 Jun 2023 18:55:51 +0000 Subject: [PATCH] Quick backup before crash --- Controller/ApiController.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Controller/ApiController.php b/Controller/ApiController.php index 5bf9fc7..580d1df 100755 --- a/Controller/ApiController.php +++ b/Controller/ApiController.php @@ -218,6 +218,7 @@ final class ApiController extends Controller $this->createModel($request->header->account, $ref, ReferenceMapper::class, 'media_reference', $request->getOrigin()); if ($collection === null) { + /** @var \Modules\Media\Models\Collection $collection */ $collection = MediaMapper::getParentCollection($path)->limit(1)->execute(); 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()); if ($collection === null) { + /** @var \Modules\Media\Models\Collection $collection */ $collection = MediaMapper::getParentCollection($path)->limit(1)->execute(); if ($collection->id === 0) {