mirror of
https://github.com/nextcloud/server.git
synced 2026-04-28 09:37:29 -04:00
fix: Apply suggestion from @julien-nc
Co-authored-by: Julien Veyssier <julien-nc@posteo.net> Signed-off-by: Marcel Klehr <mklehr@gmx.net>
This commit is contained in:
parent
1ba5f7d53a
commit
2286b9f57d
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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue