Skip to content

Commit

Permalink
fix(RemoveOldTasksBackgroundJob): Update after change to support mult…
Browse files Browse the repository at this point in the history
…iple images in TextToImage

Signed-off-by: Marcel Klehr <mklehr@gmx.net>
  • Loading branch information
marcelklehr committed Oct 22, 2023
1 parent 6007b1b commit 497559b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/private/TextToImage/RemoveOldTasksBackgroundJob.php
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 497559b

Please sign in to comment.