]> source.dussan.org Git - nextcloud-server.git/commitdiff
LLM OCP API: Fix psam error
authorMarcel Klehr <mklehr@gmx.net>
Thu, 6 Jul 2023 13:24:54 +0000 (15:24 +0200)
committerMarcel Klehr <mklehr@gmx.net>
Wed, 9 Aug 2023 08:01:43 +0000 (10:01 +0200)
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
(cherry picked from commit 0a0e8124537d91373870b81ba1f6142f90f26fa0)

lib/private/LanguageModel/Db/Task.php

index 1e8d57d39e8ada4bc7c0761e234eb6dc8c0337d3..d4e82024da1276c46e4dae8c3f90b063a85becfe 100644 (file)
@@ -64,7 +64,8 @@ class Task extends Entity {
        }
 
        public static function fromLanguageModelTask(ILanguageModelTask $task): Task {
-               return Task::fromParams([
+               /** @var Task $task */
+               $task = Task::fromParams([
                        'id' => $task->getId(),
                        'type' => $task->getType(),
                        'lastUpdated' => time(),
@@ -75,5 +76,6 @@ class Task extends Entity {
                        'appId' => $task->getAppId(),
                        'identifier' => $task->getIdentifier(),
                ]);
+               return $task;
        }
 }