This commit is contained in:
2025-05-06 13:46:00 +03:00
parent a482ab3c7e
commit f0d4686141
+6 -1
View File
@@ -45,7 +45,12 @@ class RebuildThumbnails extends Command
$records = $this->query->filter(["schema" => $schema->name])->run()->records;
$disk = $this->fileService->loadDisk($schema->disk);
foreach ($records as $record) {
$this->fileService->createTemplates($disk, $record->_file->path);
try{
$this->fileService->createTemplates($disk, $record->_file->path);
} catch (Exception $e) {
echo "File ". $record->_file->originalName . " could not be rebuilt \n" ;
}
}
}