diff options
author | Marcel Klehr <mklehr@gmx.net> | 2023-09-07 15:01:56 +0200 |
---|---|---|
committer | Marcel Klehr <mklehr@gmx.net> | 2023-10-18 13:21:50 +0200 |
commit | 666f7b33c9a291d0222dbcfcf520f223b84c9301 (patch) | |
tree | fc15e93879a56af9b8da3b9405a45d532a3c48ee /lib/private/TextToImage | |
parent | 2d44c7c1ed4487b946a72eb9d32da59d799d8c66 (diff) | |
download | nextcloud-server-666f7b33c9a291d0222dbcfcf520f223b84c9301.tar.gz nextcloud-server-666f7b33c9a291d0222dbcfcf520f223b84c9301.zip |
Small fixes
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
Diffstat (limited to 'lib/private/TextToImage')
-rw-r--r-- | lib/private/TextToImage/Manager.php | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/private/TextToImage/Manager.php b/lib/private/TextToImage/Manager.php index 8700ea8b567..6333292a503 100644 --- a/lib/private/TextToImage/Manager.php +++ b/lib/private/TextToImage/Manager.php @@ -130,7 +130,6 @@ class Manager implements IManager { } $file = $folder->newFile((string) $task->getId()); $provider->generate($task->getInput(), $file->write()); - $task->setResultPath($file->getName()); $task->setStatus(Task::STATUS_SUCCESSFUL); $this->taskMapper->update(DbTask::fromPublicTask($task)); return; @@ -184,7 +183,7 @@ class Manager implements IManager { * @param int $id The id of the task * @return Task * @throws RuntimeException If the query failed - * @throws NotFoundException If the task could not be found + * @throws TaskNotFoundException If the task could not be found */ public function getTask(int $id): Task { try { @@ -207,7 +206,7 @@ class Manager implements IManager { * @param string|null $userId The user id that scheduled the task * @return Task * @throws RuntimeException If the query failed - * @throws NotFoundException If the task could not be found + * @throws TaskNotFoundException If the task could not be found */ public function getUserTask(int $id, ?string $userId): Task { try { |