]> source.dussan.org Git - nextcloud-server.git/commitdiff
LanguageModelApiController: Use jsonSerialize method to help psalm
authorMarcel Klehr <mklehr@gmx.net>
Fri, 7 Jul 2023 11:36:27 +0000 (13:36 +0200)
committerMarcel Klehr <mklehr@gmx.net>
Wed, 9 Aug 2023 08:02:25 +0000 (10:02 +0200)
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
(cherry picked from commit 49ea56b306d0675958ece8bf043dcc06cee74ef9)

core/Controller/LanguageModelApiController.php

index 5bb7b31c3c79fb0ba2a9de0d74e9d444ddbbfb0b..dcc8e59e2cc237e1757b3d3a4fefce54bcef5690 100644 (file)
@@ -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);