Skip to content

Commit

Permalink
small forgotten step
Browse files Browse the repository at this point in the history
  • Loading branch information
ildyria committed Apr 11, 2024
1 parent 702fca6 commit be3fff3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Actions/Photo/Create.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit be3fff3

Please sign in to comment.