LanguageModelApiController: Use jsonSerialize method to help psalm

Signed-off-by: Marcel Klehr <mklehr@gmx.net>
This commit is contained in:
Marcel Klehr 2023-07-07 13:36:27 +02:00
parent a4578cd995
commit 49ea56b306
1 changed files with 1 additions and 1 deletions

View 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);