mirror of
https://github.com/nextcloud/server.git
synced 2026-06-08 16:26:59 -04:00
LanguageModelApiController: Use jsonSerialize method to help psalm
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
(cherry picked from commit 49ea56b306)
This commit is contained in:
parent
a39e3c90e9
commit
1ad0a2960e
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue