From c6c5cc4e14ae8e956eaef4f5db53a1a7ded8a71a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9s=20Moya?= Date: Mon, 20 Jul 2020 13:08:40 +0200 Subject: [PATCH] :bug: Ignore deleted files in dashboard search --- backend/src/uxbox/services/queries/files.clj | 1 + 1 file changed, 1 insertion(+) diff --git a/backend/src/uxbox/services/queries/files.clj b/backend/src/uxbox/services/queries/files.clj index 55cec4355..66ca104f2 100644 --- a/backend/src/uxbox/services/queries/files.clj +++ b/backend/src/uxbox/services/queries/files.clj @@ -62,6 +62,7 @@ inner join projects as pr on (file.project_id = pr.id) left join page on (file.id = page.file_id) where file.name ilike ('%' || ? || '%') + and file.deleted_at is null window pages_w as (partition by file.id order by page.created_at range between unbounded preceding and unbounded following)