Skip to content

Commit

Permalink
fix: mistake in getOutputFilePreview
Browse files Browse the repository at this point in the history
Signed-off-by: Julien Veyssier <[email protected]>
  • Loading branch information
julien-nc committed Jan 30, 2025
1 parent 4d2a8bf commit 337c85c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Controller/AssistantApiController.php
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ public function getOutputFilePreview(int $ocpTaskId, int $fileId, ?int $x = 100,

if ($preview['type'] === 'file') {
/** @var File $file */
$file = $preview['type'];
$file = $preview['file'];
$response = new DataDownloadResponse(
$file->getContent(),
$ocpTaskId . '-' . $fileId . '-preview',
Expand Down

0 comments on commit 337c85c

Please sign in to comment.