Skip to content

Commit

Permalink
fix: ora bug
Browse files Browse the repository at this point in the history
  • Loading branch information
DeepDiver1975 committed Jun 30, 2022
1 parent d93b3b1 commit 5336c52
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/private/PreviewCleanup.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ private function queryPreviewsToDelete(int $startFileId = 0, int $chunkSize = 10
$sql = "select `fileid`, `name`, `user_id` from `*PREFIX*filecache` `fc`
join `*PREFIX*mounts` on `storage` = `storage_id`
where `parent` in (select `fileid` from `*PREFIX*filecache` where `storage` in (select `numeric_id` from `oc_storages` where `id` like 'home::%' or `id` like 'object::user:%') and `path` = 'thumbnails')
and not exists(select `fileid` from `*PREFIX*filecache` where `fc`.`name` = CAST(`*PREFIX*filecache`.`fileid` as CHAR))
and not exists(select `fileid` from `*PREFIX*filecache` where `fc`.`name` = CAST(`*PREFIX*filecache`.`fileid` as CHAR(24)))
and `fc`.`fileid` > ?
order by `user_id`, `fileid`";

Expand Down

0 comments on commit 5336c52

Please sign in to comment.