mirror of https://github.com/nextcloud/server
LanguageModelApiController: Use jsonSerialize method to help psalm
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
This commit is contained in:
parent
a4578cd995
commit
49ea56b306
|
@ -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 New Issue