From eb189caa85d3a76ffca17a57482f9459e03222c7 Mon Sep 17 00:00:00 2001 From: ildyria Date: Fri, 18 Oct 2024 23:51:25 +0200 Subject: [PATCH] add unpack --- app/Http/Controllers/Gallery/PhotoController.php | 4 ++-- app/Image/Files/ExtractedJobFile.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/Http/Controllers/Gallery/PhotoController.php b/app/Http/Controllers/Gallery/PhotoController.php index f1f69be8e46..10ca3a38e0a 100644 --- a/app/Http/Controllers/Gallery/PhotoController.php +++ b/app/Http/Controllers/Gallery/PhotoController.php @@ -84,8 +84,8 @@ private function process( if (Configs::getValueAsBool('extract_zip_on_upload') && \Str::endsWith($processableFile->getPath(), '.zip')) { - ExtractZip::dispatch($processableFile, $album->id, $file_last_modified_time); - $meta->stage = FileStatus::DONE->value; + ExtractZip::dispatch($processableFile, $album?->id, $file_last_modified_time); + $meta->stage = FileStatus::DONE; return $meta; } diff --git a/app/Image/Files/ExtractedJobFile.php b/app/Image/Files/ExtractedJobFile.php index a829125cdfd..dbb74ff418d 100644 --- a/app/Image/Files/ExtractedJobFile.php +++ b/app/Image/Files/ExtractedJobFile.php @@ -12,7 +12,7 @@ { public function __construct( public string $path, - public string $baseName + public string $baseName, ) { }