aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorMarcel Klehr <mklehr@gmx.net>2024-05-13 08:24:31 +0200
committerMarcel Klehr <mklehr@gmx.net>2024-05-14 11:38:42 +0200
commitc02049033a081d091770a19a7f371981daf3b8c9 (patch)
treed38ad8d92b959b9bf0f8bae5d1fff1ee78ee1765 /lib
parente4b1d237682b34a8056ec1a53eddcf886786c1a9 (diff)
downloadnextcloud-server-c02049033a081d091770a19a7f371981daf3b8c9.tar.gz
nextcloud-server-c02049033a081d091770a19a7f371981daf3b8c9.zip
Update lib/private/TaskProcessing/Manager.php
Co-authored-by: julien-nc <julien-nc@posteo.net> Signed-off-by: Marcel Klehr <mklehr@gmx.net>
Diffstat (limited to 'lib')
-rw-r--r--lib/private/TaskProcessing/Manager.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/TaskProcessing/Manager.php b/lib/private/TaskProcessing/Manager.php
index 595b33ddc90..97cb39ae7c8 100644
--- a/lib/private/TaskProcessing/Manager.php
+++ b/lib/private/TaskProcessing/Manager.php
@@ -812,7 +812,7 @@ class Manager implements IManager {
public function getUserTasks(?string $userId, ?string $taskTypeId = null, ?string $customId = null): array {
try {
- $taskEntities = $this->taskMapper->findUserTasksByApp($userId, $taskTypeId, $customId);
+ $taskEntities = $this->taskMapper->findByUserAndTaskType($userId, $taskTypeId, $customId);
return array_map(fn ($taskEntity): Task => $taskEntity->toPublicTask(), $taskEntities);
} catch (\OCP\DB\Exception $e) {
throw new \OCP\TaskProcessing\Exception\Exception('There was a problem finding the tasks', 0, $e);