From 32c59f044030b875607fcca8c45723968b40bfb9 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Sat, 3 Feb 2024 13:30:02 -0700 Subject: [PATCH] Update TransformImports command, fix import service condition --- app/Console/Commands/TransformImports.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/Console/Commands/TransformImports.php b/app/Console/Commands/TransformImports.php index b8840117..a5a4dbb7 100644 --- a/app/Console/Commands/TransformImports.php +++ b/app/Console/Commands/TransformImports.php @@ -70,6 +70,11 @@ class TransformImports extends Command } $idk = ImportService::getId($ip->user_id, $ip->creation_year, $ip->creation_month, $ip->creation_day); + if(!$idk) { + $ip->skip_missing_media = true; + $ip->save(); + continue; + } if(Storage::exists('imports/' . $id . '/' . $ip->filename) === false) { ImportService::clearAttempts($profile->id);