Skip to content

Commit

Permalink
fix(TaskProcessing\Manager#setTaskResult): Replace files contents wit…
Browse files Browse the repository at this point in the history
…h ID instead of File object

Signed-off-by: Marcel Klehr <mklehr@gmx.net>
  • Loading branch information
marcelklehr committed Jul 9, 2024
1 parent cce2c52 commit 081eed7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/private/TaskProcessing/Manager.php
Original file line number Diff line number Diff line change
Expand Up @@ -689,6 +689,11 @@ public function setTaskResult(int $id, ?string $error, ?array $result, bool $isU
} else {
$output = $this->validateOutputFileIds($output, $outputShape, $optionalOutputShape);
}
foreach ($output as $key => $value) {
if ($value instanceof Node) {
$output[$key] = $value->getId();
}
}
$task->setOutput($output);
$task->setProgress(1);
$task->setStatus(Task::STATUS_SUCCESSFUL);
Expand Down

0 comments on commit 081eed7

Please sign in to comment.