mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -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
297f61b619
commit
baf0a24d49
1 changed files with 2 additions and 1 deletions
|
|
@ -40,7 +40,8 @@ class TaskProcessingPickupSpeed 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