mirror of
https://github.com/penpot/penpot.git
synced 2025-08-02 14:08:23 +02:00
🐛 Add missing file migration to get-team-shared-files rpc method
This commit is contained in:
parent
9e5bc3675c
commit
56472a95de
1 changed files with 5 additions and 1 deletions
|
@ -595,7 +595,11 @@
|
|||
(teams/check-read-permissions! conn profile-id team-id)
|
||||
(->> (db/exec! conn [sql:team-shared-files team-id])
|
||||
(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]
|
||||
(if-let [media-id (:media-id row)]
|
||||
(-> row
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue