diff --git a/app/Jobs/UploadSizeVariantToS3Job.php b/app/Jobs/UploadSizeVariantToS3Job.php index 455991371c2..b11854ca67e 100644 --- a/app/Jobs/UploadSizeVariantToS3Job.php +++ b/app/Jobs/UploadSizeVariantToS3Job.php @@ -86,6 +86,10 @@ private function handleVideoPartner(): void $photo = Photo::query()->where('id', '=', $this->variant->photo_id)->first(); + if ($photo->live_photo_short_path === null) { + return; + } + Storage::disk(StorageDiskType::S3->value)->writeStream( $photo->live_photo_short_path, Storage::disk(StorageDiskType::LOCAL->value)->readStream($photo->live_photo_short_path)