🐛 Fix deleted files appear in search results

This commit is contained in:
Alejandro Alonso 2023-03-22 08:05:59 +01:00 committed by Alonso Torres
parent 6b4bca50ee
commit c851f60de4
2 changed files with 2 additions and 0 deletions

View file

@ -45,6 +45,7 @@
from file as f
inner join projects as pr on (f.project_id = pr.id)
where f.name ilike ('%' || ? || '%')
and (f.deleted_at is null or f.deleted_at > now())
order by f.created_at asc")
(defn search-files