Skip to content

Commit

Permalink
fix: Fixed an issue where the craft image-optimize/optimize/create
Browse files Browse the repository at this point in the history
…CLI command did not properly optimize all images ([#350](#350))
  • Loading branch information
khalwat committed Oct 19, 2022
1 parent 5edb4ac commit 50d30d3
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/services/OptimizedImages.php
Original file line number Diff line number Diff line change
Expand Up @@ -309,9 +309,7 @@ public function resaveAllVolumesAssets(?int $fieldId = null, bool $force = false
{
$volumes = Craft::$app->getVolumes()->getAllVolumes();
foreach ($volumes as $volume) {
if (is_subclass_of($volume, Volume::class)) {
$this->resaveVolumeAssets($volume, $fieldId, $force);
}
$this->resaveVolumeAssets($volume, $fieldId, $force);
}
}

Expand Down

0 comments on commit 50d30d3

Please sign in to comment.