aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2024-07-19 18:05:07 +0200
committerRobin Appelman <robin@icewind.nl>2024-07-23 14:41:15 +0200
commit5ea972922bcb03007728b3a2e24dce18cd9cebf0 (patch)
tree068173624f0dd46cd6e637b02a74fb626081d7af /lib
parent16c184e2cb1110797935107987d0fc9536031df8 (diff)
downloadnextcloud-server-5ea972922bcb03007728b3a2e24dce18cd9cebf0.tar.gz
nextcloud-server-5ea972922bcb03007728b3a2e24dce18cd9cebf0.zip
fix: explicitly filter for storageid in preview cleanup job
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'lib')
-rw-r--r--lib/private/Preview/BackgroundCleanupJob.php2
1 files changed, 2 insertions, 0 deletions
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
@@ -73,6 +73,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(
$qb->expr()->like('a.name', $qb->createNamedParameter('__%'))