0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-06 14:50:20 -05:00

🐛 Ignore deleted files in dashboard search

This commit is contained in:
Andrés Moya 2020-07-20 13:08:40 +02:00
parent bd34fc40b4
commit c6c5cc4e14

View file

@ -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)