0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-02-13 02:28:18 -05:00

🐛 Fix bug about decoding :features PgArray

This commit is contained in:
Andrés Moya 2022-10-21 16:45:53 +02:00 committed by Andrés Moya
parent 2ee15c3147
commit b191df0351
2 changed files with 4 additions and 2 deletions

View file

@ -194,7 +194,8 @@
(proj/check-edition-permissions! conn profile-id (:project-id file))
(db/exec-one! conn ["SET CONSTRAINTS ALL DEFERRED"])
(-> (duplicate-file* conn params {:reset-shared-flag true})
(update :data blob/decode))))
(update :data blob/decode)
(update :features db/decode-pgarray #{}))))
;; --- COMMAND: Duplicate Project

View file

@ -146,7 +146,8 @@
(when-not is-shared
(absorb-library conn params)
(unlink-files conn params))
(set-file-shared conn params)))
(-> (set-file-shared conn params)
(update :features db/decode-pgarray #{}))))
(defn- unlink-files
[conn {:keys [id] :as params}]