From 5ea972922bcb03007728b3a2e24dce18cd9cebf0 Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Fri, 19 Jul 2024 18:05:07 +0200 Subject: [PATCH] fix: explicitly filter for storageid in preview cleanup job Signed-off-by: Robin Appelman --- lib/private/Preview/BackgroundCleanupJob.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/private/Preview/BackgroundCleanupJob.php b/lib/private/Preview/BackgroundCleanupJob.php index 49ff01486a3..deadcd007b1 100644 --- a/lib/private/Preview/BackgroundCleanupJob.php +++ b/lib/private/Preview/BackgroundCleanupJob.php @@ -72,6 +72,8 @@ class BackgroundCleanupJob extends TimedJob { )) ->where( $qb->expr()->isNull('b.fileid') + )->andWhere( + $qb->expr()->eq('a.storage', $qb->createNamedParameter($this->previewFolder->getStorageId())) )->andWhere( $qb->expr()->eq('a.parent', $qb->createNamedParameter($this->previewFolder->getId())) )->andWhere(