Skip to content

Commit

Permalink
Fix scan all command pagination (#184)
Browse files Browse the repository at this point in the history
  • Loading branch information
karniv00l authored May 28, 2020
1 parent 8fdcdc6 commit ed12079
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Command/ScanAllPackagesCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
$progressBar = new ProgressBar($output, $count);
$progressBar->start();

for ($offset = 0; $offset <= $count; $offset = ($offset + 1) * $limit) {
for ($offset = 0; $offset < $count; $offset += $limit) {
foreach ($this->packageQuery->getAllSynchronized($limit, $offset) as $item) {
$this->scanner->scan(
$this->packageRepository->getById(Uuid::fromString($item->id()))
Expand Down

0 comments on commit ed12079

Please sign in to comment.