0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-09 00:10:11 -05:00

🐛 Dont return duplicated files on dashboard.

This commit is contained in:
Andrey Antukh 2019-12-20 23:15:30 +01:00
parent 0cb6ecadb6
commit 9f8936ea40

View file

@ -26,7 +26,8 @@
(s/def ::user ::us/uuid)
(su/defstr sql:generic-project-files
"select pf.*,
"select distinct on (pf.id, pf.created_at)
pf.*,
p.name as project_name,
array_agg(pp.id) over pages_w as pages
from project_files as pf