diff options
author | Marcel Klehr <mklehr@gmx.net> | 2024-07-09 13:35:46 +0200 |
---|---|---|
committer | Marcel Klehr <mklehr@gmx.net> | 2024-07-17 13:55:55 +0200 |
commit | 3937cccd4b564c77620f6fc001b1d623d5e15c1b (patch) | |
tree | 3b07e36a01a68f5505ad4a002da8b233afdfc06a /lib/private/TaskProcessing/Manager.php | |
parent | 5c457c64e88c4c7140c25a580c0964463b7c1094 (diff) | |
download | nextcloud-server-3937cccd4b564c77620f6fc001b1d623d5e15c1b.tar.gz nextcloud-server-3937cccd4b564c77620f6fc001b1d623d5e15c1b.zip |
fix(TaskProcessing\Manager#setTaskResult): Replace files contents with ID instead of File object
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
Diffstat (limited to 'lib/private/TaskProcessing/Manager.php')
-rw-r--r-- | lib/private/TaskProcessing/Manager.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/private/TaskProcessing/Manager.php b/lib/private/TaskProcessing/Manager.php index 4ec8dd9cad2..1158c4a8519 100644 --- a/lib/private/TaskProcessing/Manager.php +++ b/lib/private/TaskProcessing/Manager.php @@ -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); |