From 497559b246dc8ccc5e05f9570fc37afcd156a462 Mon Sep 17 00:00:00 2001 From: Marcel Klehr Date: Sun, 22 Oct 2023 12:49:46 +0200 Subject: [PATCH] fix(RemoveOldTasksBackgroundJob): Update after change to support multiple images in TextToImage Signed-off-by: Marcel Klehr --- lib/private/TextToImage/RemoveOldTasksBackgroundJob.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/private/TextToImage/RemoveOldTasksBackgroundJob.php b/lib/private/TextToImage/RemoveOldTasksBackgroundJob.php index 82677fa635c6c..4980bc02a976b 100644 --- a/lib/private/TextToImage/RemoveOldTasksBackgroundJob.php +++ b/lib/private/TextToImage/RemoveOldTasksBackgroundJob.php @@ -62,11 +62,11 @@ protected function run($argument) { $folder = $this->appData->getFolder('text2image'); foreach ($deletedTasks as $deletedTask) { try { - $folder->getFile((string)$deletedTask->getId())->delete(); + $folder->getFolder((string)$deletedTask->getId())->delete(); } catch (NotFoundException) { // noop } catch (NotPermittedException $e) { - $this->logger->warning('Failed to delete stale text to image task', ['exception' => $e]); + $this->logger->warning('Failed to delete stale text to image task files', ['exception' => $e]); } } } catch (Exception $e) {