Skip to content

Commit

Permalink
Flush more often
Browse files Browse the repository at this point in the history
  • Loading branch information
SergioMendolia committed Sep 20, 2023
1 parent 078ff45 commit 29418ac
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Command/BooksExtractCoverCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
try {
$book = $this->fileSystemManager->extractCover($book);
$this->entityManager->persist($book);
$this->entityManager->flush();
} catch (\Exception $e) {
$io->error($e->getMessage());
continue;
Expand Down

0 comments on commit 29418ac

Please sign in to comment.