aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private
diff options
context:
space:
mode:
authorMarcel Klehr <mklehr@gmx.net>2023-07-06 15:24:54 +0200
committerMarcel Klehr <mklehr@gmx.net>2023-07-07 13:39:10 +0200
commit0a0e8124537d91373870b81ba1f6142f90f26fa0 (patch)
tree6091e7aa2a91a988374f395794cd9f8155f0d55d /lib/private
parentd6d4e0ffe367a89dda1105fed3df15bc66bff11a (diff)
downloadnextcloud-server-0a0e8124537d91373870b81ba1f6142f90f26fa0.tar.gz
nextcloud-server-0a0e8124537d91373870b81ba1f6142f90f26fa0.zip
LLM OCP API: Fix psam error
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
Diffstat (limited to 'lib/private')
-rw-r--r--lib/private/LanguageModel/Db/Task.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/private/LanguageModel/Db/Task.php b/lib/private/LanguageModel/Db/Task.php
index 1e8d57d39e8..d4e82024da1 100644
--- a/lib/private/LanguageModel/Db/Task.php
+++ b/lib/private/LanguageModel/Db/Task.php
@@ -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;
}
}