Update TransformImports command, fix import service condition

This commit is contained in:
Daniel Supernault 2024-02-03 13:30:02 -07:00
parent 04c5e550a5
commit 32c59f0440
No known key found for this signature in database
GPG key ID: 23740873EE6F76A1

View file

@ -70,6 +70,11 @@ class TransformImports extends Command
} }
$idk = ImportService::getId($ip->user_id, $ip->creation_year, $ip->creation_month, $ip->creation_day); $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) { if(Storage::exists('imports/' . $id . '/' . $ip->filename) === false) {
ImportService::clearAttempts($profile->id); ImportService::clearAttempts($profile->id);