mirror of
https://github.com/penpot/penpot.git
synced 2026-09-14 07:59:36 +00:00
🐛 Add missing file migration to get-team-shared-files rpc method
This commit is contained in:
parent
9e5bc3675c
commit
56472a95de
@ -595,7 +595,11 @@
|
|||||||
(teams/check-read-permissions! conn profile-id team-id)
|
(teams/check-read-permissions! conn profile-id team-id)
|
||||||
(->> (db/exec! conn [sql:team-shared-files team-id])
|
(->> (db/exec! conn [sql:team-shared-files team-id])
|
||||||
(into #{} (comp
|
(into #{} (comp
|
||||||
(map decode-row)
|
;; NOTE: this decode operation is a workaround for a
|
||||||
|
;; fast fix, this should be approached with a more
|
||||||
|
;; efficient implementation, for now it loads all
|
||||||
|
;; the files in memory.
|
||||||
|
(map (partial bfc/decode-file cfg))
|
||||||
(map (fn [row]
|
(map (fn [row]
|
||||||
(if-let [media-id (:media-id row)]
|
(if-let [media-id (:media-id row)]
|
||||||
(-> row
|
(-> row
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user