fix: Apply suggestion from @julien-nc

Co-authored-by: Julien Veyssier <julien-nc@posteo.net>
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
pull/55778/head
Marcel Klehr 2025-10-14 11:21:54 +07:00 committed by backportbot[bot]
parent 15d009b4dc
commit 53dcd65723
1 changed files with 2 additions and 1 deletions

@ -41,7 +41,8 @@ class TaskProcessingSuccessRate implements ISetupCheck {
$lastNDays = 1;
while ($taskCount === 0 && $lastNDays < self::MAX_DAYS) {
$lastNDays++;
$tasks = $this->taskProcessingManager->getTasks(userId: '', scheduleAfter: $this->timeFactory->now()->getTimestamp() - 60 * 60 * 24 * $lastNDays); // userId: '' means no filter, whereas null would mean guest
// userId: '' means no filter, whereas null would mean guest
$tasks = $this->taskProcessingManager->getTasks(userId: '', scheduleAfter: $this->timeFactory->now()->getTimestamp() - (60 * 60 * 24 * $lastNDays));
$taskCount = count($tasks);
}
if ($taskCount === 0) {