mirror of
https://github.com/penpot/penpot.git
synced 2025-01-24 15:39:50 -05:00
🐛 Dont return duplicated files on dashboard.
This commit is contained in:
parent
0cb6ecadb6
commit
9f8936ea40
1 changed files with 2 additions and 1 deletions
|
@ -26,7 +26,8 @@
|
||||||
(s/def ::user ::us/uuid)
|
(s/def ::user ::us/uuid)
|
||||||
|
|
||||||
(su/defstr sql:generic-project-files
|
(su/defstr sql:generic-project-files
|
||||||
"select pf.*,
|
"select distinct on (pf.id, pf.created_at)
|
||||||
|
pf.*,
|
||||||
p.name as project_name,
|
p.name as project_name,
|
||||||
array_agg(pp.id) over pages_w as pages
|
array_agg(pp.id) over pages_w as pages
|
||||||
from project_files as pf
|
from project_files as pf
|
||||||
|
|
Loading…
Add table
Reference in a new issue