Fixed: fix first execution of accompanying period step change cronjob

This commit is contained in:
Julien Fastré 2023-05-17 13:27:20 +02:00
parent 8863e0a92e
commit 66dc027354
Signed by: julienfastre
GPG Key ID: BDE2190974723FCB

View File

@ -27,7 +27,7 @@ readonly class AccompanyingPeriodStepChangeCronjob implements CronJobInterface
{
$now = $this->clock->now();
if ($now->sub(new \DateInterval('P1D')) < $cronJobExecution->getLastStart()) {
if (null !== $cronJobExecution && $now->sub(new \DateInterval('P1D')) < $cronJobExecution->getLastStart()) {
return false;
}