From be3fff3f3ae29ead206373affdb34dcd7f8c237c Mon Sep 17 00:00:00 2001 From: ildyria Date: Wed, 10 Apr 2024 18:07:36 +0200 Subject: [PATCH] small forgotten step --- app/Actions/Photo/Create.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Actions/Photo/Create.php b/app/Actions/Photo/Create.php index 4a6ee0b5785..298762b3179 100644 --- a/app/Actions/Photo/Create.php +++ b/app/Actions/Photo/Create.php @@ -160,7 +160,7 @@ private function handleStandalone(InitDTO $initDTO): Photo // If source file could not be put into final destination, remove // freshly created photo from DB to avoid having "zombie" entries. try { - $dto->photo->delete(); + $dto->getPhoto()->delete(); } catch (\Throwable) { // Sic! If anything goes wrong here, we still throw the original exception }