fix: explicitly filter for storageid in preview cleanup job

Signed-off-by: Robin Appelman <robin@icewind.nl>
This commit is contained in:
Robin Appelman 2024-07-19 18:05:07 +02:00
parent 16c184e2cb
commit 5ea972922b
No known key found for this signature in database
GPG key ID: 42B69D8A64526EFB

View file

@ -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(