Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
QuentinGab committed Jun 16, 2024
1 parent e92686d commit 633d45a
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions src/Traits/HasMedia.php
Original file line number Diff line number Diff line change
Expand Up @@ -330,13 +330,18 @@ public function dispatchCollectionConversions(
?array $except = null,
?bool $sync = null,
): static {
return $this->dispatchConversions(
media: $this->getMedia($collectionName),
force: $force,
only: $only,
except: $except,
sync: $sync,
);

foreach ($this->getMedia($collectionName) as $media) {
$this->dispatchConversions(
media: $media,
force: $force,
only: $only,
except: $except,
sync: $sync,
);
}

return $this;
}

/**
Expand Down

0 comments on commit 633d45a

Please sign in to comment.