diff options
author | Marcel Klehr <mklehr@gmx.net> | 2023-07-06 15:24:54 +0200 |
---|---|---|
committer | Marcel Klehr <mklehr@gmx.net> | 2023-07-07 13:39:10 +0200 |
commit | 0a0e8124537d91373870b81ba1f6142f90f26fa0 (patch) | |
tree | 6091e7aa2a91a988374f395794cd9f8155f0d55d /lib/private | |
parent | d6d4e0ffe367a89dda1105fed3df15bc66bff11a (diff) | |
download | nextcloud-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.php | 4 |
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; } } |