From c02049033a081d091770a19a7f371981daf3b8c9 Mon Sep 17 00:00:00 2001 From: Marcel Klehr Date: Mon, 13 May 2024 08:24:31 +0200 Subject: Update lib/private/TaskProcessing/Manager.php Co-authored-by: julien-nc Signed-off-by: Marcel Klehr --- lib/private/TaskProcessing/Manager.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') 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); -- cgit v1.2.3