aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/TextToImage
diff options
context:
space:
mode:
authorMarcel Klehr <mklehr@gmx.net>2023-09-07 15:01:56 +0200
committerMarcel Klehr <mklehr@gmx.net>2023-10-18 13:21:50 +0200
commit666f7b33c9a291d0222dbcfcf520f223b84c9301 (patch)
treefc15e93879a56af9b8da3b9405a45d532a3c48ee /lib/private/TextToImage
parent2d44c7c1ed4487b946a72eb9d32da59d799d8c66 (diff)
downloadnextcloud-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.php5
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 {