mirror of
https://github.com/nextcloud/server.git
synced 2026-02-20 00:12:30 -05:00
fix(TaskProcessing\Manager#setTaskResult): Replace files contents with ID instead of File object
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
This commit is contained in:
parent
5c457c64e8
commit
3937cccd4b
1 changed files with 5 additions and 0 deletions
|
|
@ -689,6 +689,11 @@ class Manager implements IManager {
|
|||
} 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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue