From d57ee04011f186fbbd298b74ce79d2062591af6c Mon Sep 17 00:00:00 2001 From: Jeroen De Meerleer Date: Fri, 20 May 2022 19:34:45 +0200 Subject: [PATCH] BUGFIX: some fixes --- src/Command/DaemonCommand.php | 1 + src/Repository/JobRepository.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Command/DaemonCommand.php b/src/Command/DaemonCommand.php index c654045..b166c02 100644 --- a/src/Command/DaemonCommand.php +++ b/src/Command/DaemonCommand.php @@ -84,6 +84,7 @@ class DaemonCommand extends Command } } } + $this->doctrine->getManager()->clear(); sleep(1); } $output->writeln('Ended after ' . $timelimit . ' seconds'); diff --git a/src/Repository/JobRepository.php b/src/Repository/JobRepository.php index b6331bc..f155c0e 100644 --- a/src/Repository/JobRepository.php +++ b/src/Repository/JobRepository.php @@ -613,7 +613,7 @@ class JobRepository extends EntityRepository switch($job->getData('hosttype')) { default: - if($job->getData('crotype') == 'http') break; + if($job->getData('crontype') == 'http') break; $job->setData('hosttype', 'local'); case 'local': $job->setData('host', 'localhost');