Skip to content

Commit

Permalink
fix command
Browse files Browse the repository at this point in the history
  • Loading branch information
QuentinGab committed Dec 27, 2024
1 parent 3f15e45 commit a42c966
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/Commands/GenerateMediaConversionsCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,11 @@ public function handle(): int

$filter = function (MediaConversionDefinition $definition) use ($immediate) {

if (
$definition->immediate === false &&
$immediate === false
) {
return false;
if ($immediate) {
return true;
}

return true;
return $definition->immediate;
};

/**
Expand Down

0 comments on commit a42c966

Please sign in to comment.