aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorMarcel Klehr <mklehr@gmx.net>2023-07-07 13:36:27 +0200
committerMarcel Klehr <mklehr@gmx.net>2023-07-07 13:39:10 +0200
commit49ea56b306d0675958ece8bf043dcc06cee74ef9 (patch)
tree4fc4d9f49fe99d77f7c40f5eabbd861300f4f832 /core
parenta4578cd99519a63f1b0b5292ec369c0f2dada91f (diff)
downloadnextcloud-server-49ea56b306d0675958ece8bf043dcc06cee74ef9.tar.gz
nextcloud-server-49ea56b306d0675958ece8bf043dcc06cee74ef9.zip
LanguageModelApiController: Use jsonSerialize method to help psalm
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
Diffstat (limited to 'core')
-rw-r--r--core/Controller/LanguageModelApiController.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/Controller/LanguageModelApiController.php b/core/Controller/LanguageModelApiController.php
index 5bb7b31c3c7..dcc8e59e2cc 100644
--- a/core/Controller/LanguageModelApiController.php
+++ b/core/Controller/LanguageModelApiController.php
@@ -115,7 +115,7 @@ class LanguageModelApiController extends \OCP\AppFramework\OCSController {
}
return new DataResponse([
- 'task' => $task,
+ 'task' => $task->jsonSerialize(),
]);
} catch (NotFoundException $e) {
return new DataResponse(['message' => $this->l->t('Task not found')], Http::STATUS_NOT_FOUND);