Skip to content

Commit

Permalink
TTK-26792 fix MongoDB save
Browse files Browse the repository at this point in the history
  • Loading branch information
Yurujai committed Feb 2, 2024
1 parent bcef2d8 commit 474bcd6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Command/ImportPlaylistFromYouTubeChannel.php
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,8 @@ protected function execute(InputInterface $input, OutputInterface $output): int
}
} while (null !== $nextPageToken);

$this->mongoDBFlush($count);
$this->documentManager->flush();
$this->documentManager->clear();

$progressBar->finish();
$output->writeln(' ');
Expand Down
3 changes: 2 additions & 1 deletion Command/ImportVideosFromYouTubeChannel.php
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,8 @@ protected function execute(InputInterface $input, OutputInterface $output): int
}
} while (null !== $nextPageToken);

$this->mongoDBFlush($count);
$this->documentManager->flush();
$this->documentManager->clear();

$progressBar->finish();
$output->writeln(' ');
Expand Down

0 comments on commit 474bcd6

Please sign in to comment.