diff --git a/backend/src/app/tasks/file_gc.clj b/backend/src/app/tasks/file_gc.clj index ed7815f68..88f1a74b4 100644 --- a/backend/src/app/tasks/file_gc.clj +++ b/backend/src/app/tasks/file_gc.clj @@ -79,6 +79,7 @@ FROM file AS f WHERE f.has_media_trimmed IS false AND f.modified_at < now() - ?::interval + AND f.deleted_at IS NULL ORDER BY f.modified_at DESC FOR UPDATE SKIP LOCKED")