Skip to content

Commit

Permalink
j-guyon#182 fix command refresh
Browse files Browse the repository at this point in the history
  • Loading branch information
bpastukh committed Nov 6, 2020
1 parent c8a54b9 commit b194e34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Command/ExecuteCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ protected function execute(InputInterface $input, OutputInterface $output)

$noneExecution = true;
foreach ($commands as $command) {
$this->em->refresh($this->em->find(ScheduledCommand::class, $command));
$command = $this->em->find(ScheduledCommand::class, $command->getId());
if ($command->isDisabled() || $command->isLocked()) {
continue;
}
Expand Down

0 comments on commit b194e34

Please sign in to comment.