From e81a93b712f345f2bde1fce183f37bf425a724a9 Mon Sep 17 00:00:00 2001 From: Ante de Baas Date: Tue, 18 Jun 2024 18:00:16 +0200 Subject: [PATCH] enable lock --- src/Command/GetReportsFromMailboxCommand.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Command/GetReportsFromMailboxCommand.php b/src/Command/GetReportsFromMailboxCommand.php index f2f7b22..7259836 100644 --- a/src/Command/GetReportsFromMailboxCommand.php +++ b/src/Command/GetReportsFromMailboxCommand.php @@ -81,9 +81,9 @@ protected function execute(InputInterface $input, OutputInterface $output): int $io->error('GetReportsFromMailbox command is already running.'); return Command::FAILURE; } else { - //$lock->setValue('true'); - //$this->em->persist($lock); - //$this->em->flush(); + $lock->setValue('true'); + $this->em->persist($lock); + $this->em->flush(); $result = $this->open_mailbox($this->mailbox); if($this->mailbox_secondary->isEnabled()) {