mirror of
https://github.com/penpot/penpot.git
synced 2025-03-16 01:31:22 -05:00
🔥 review changes
This commit is contained in:
parent
d1f9e63a13
commit
be9c9f8ce8
2 changed files with 3 additions and 3 deletions
|
@ -17,7 +17,7 @@
|
||||||
[uxbox.services.queries.projects :refer [ projects-by-team ]]
|
[uxbox.services.queries.projects :refer [ projects-by-team ]]
|
||||||
[uxbox.services.queries.files :refer [ decode-row ]]))
|
[uxbox.services.queries.files :refer [ decode-row ]]))
|
||||||
|
|
||||||
(def ^:private sql:project_files_recent
|
(def ^:private sql:project-files-recent
|
||||||
"select distinct
|
"select distinct
|
||||||
f.*,
|
f.*,
|
||||||
array_agg(pg.id) over pages_w as pages,
|
array_agg(pg.id) over pages_w as pages,
|
||||||
|
@ -40,7 +40,7 @@
|
||||||
|
|
||||||
(defn recent-by-project [profile-id project]
|
(defn recent-by-project [profile-id project]
|
||||||
(let [project-id (:id project)]
|
(let [project-id (:id project)]
|
||||||
(-> (db/query db/pool [sql:project_files_recent profile-id project-id])
|
(-> (db/query db/pool [sql:project-files-recent profile-id project-id])
|
||||||
(p/then (partial mapv decode-row)))))
|
(p/then (partial mapv decode-row)))))
|
||||||
|
|
||||||
(s/def ::team-id ::us/uuid)
|
(s/def ::team-id ::us/uuid)
|
||||||
|
|
|
@ -279,7 +279,7 @@
|
||||||
(update [this state]
|
(update [this state]
|
||||||
(-> state
|
(-> state
|
||||||
(update :files assoc (:id data) data)
|
(update :files assoc (:id data) data)
|
||||||
(update :recent-files update (:project-id data) conj data)))))
|
(update-in [:recent-files (:project-id data)] conj data)))))
|
||||||
|
|
||||||
|
|
||||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||||
|
|
Loading…
Add table
Reference in a new issue