Skip to content

Commit 5284acf

Browse files
committed
fixup! Take 1 on preview delete job
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
1 parent 26001ce commit 5284acf

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

lib/private/Preview/BackgroundCleanupJob.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,8 @@ private function getOldPreviewLocations(): \Iterator {
8686
$qb->selectDistinct('a.name')
8787
->from('filecache', 'a')
8888
->leftJoin('a', 'filecache', 'b', $qb->expr()->eq(
89-
$qb->expr()->castColumn('a.name', IQueryBuilder::PARAM_INT), 'b.fileid'
89+
$qb->expr()->castColumn('a.name', IQueryBuilder::PARAM_INT),
90+
$qb->expr()->castColumn('b.fileid', IQueryBuilder::PARAM_INT)
9091
))
9192
->leftJoin('a', 'filecache', 'c', $qb->expr()->eq(
9293
'a.fileid', 'c.parent'

0 commit comments

Comments
 (0)