BUGFIX: some fixes

This commit is contained in:
Jeroen De Meerleer 2022-05-20 19:34:45 +02:00
parent 80131f0e99
commit d57ee04011
Signed by: JeroenED
GPG Key ID: 28CCCB8F62BFADD6
2 changed files with 2 additions and 1 deletions

View File

@ -84,6 +84,7 @@ class DaemonCommand extends Command
}
}
}
$this->doctrine->getManager()->clear();
sleep(1);
}
$output->writeln('Ended after ' . $timelimit . ' seconds');

View File

@ -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');