Skip to content

Commit

Permalink
feat(ZMS-1223): fix cron
Browse files Browse the repository at this point in the history
  • Loading branch information
manjencic authored Dec 4, 2023
1 parent f99b786 commit 45862cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zmsdb/src/Zmsdb/Helper/ArchivedDataIntoStatisticByCron.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ protected function writeProcessInStatisticTable(
) {
$requestList = (new \BO\Zmsdb\Request())->readRequestByArchiveId($process->archiveId);
$requestList = ($requestList->count()) ? $requestList : [new \BO\Zmsentities\Request(['id' => '-1'])];
$processingTime = $requestList->count() === 1 ? $process->bearbeitungszeit : null;
$processingTime = ($requestList->count() && $requestList->count() === 1) ? $process->bearbeitungszeit : null;

foreach ($requestList as $request) {
$archived = true; // for verbose
Expand Down

0 comments on commit 45862cd

Please sign in to comment.