mirror of
https://github.com/penpot/penpot.git
synced 2025-06-09 08:11:38 +02:00
🐛 Fix bug about decoding :features PgArray
This commit is contained in:
parent
2ee15c3147
commit
b191df0351
2 changed files with 4 additions and 2 deletions
|
@ -194,7 +194,8 @@
|
||||||
(proj/check-edition-permissions! conn profile-id (:project-id file))
|
(proj/check-edition-permissions! conn profile-id (:project-id file))
|
||||||
(db/exec-one! conn ["SET CONSTRAINTS ALL DEFERRED"])
|
(db/exec-one! conn ["SET CONSTRAINTS ALL DEFERRED"])
|
||||||
(-> (duplicate-file* conn params {:reset-shared-flag true})
|
(-> (duplicate-file* conn params {:reset-shared-flag true})
|
||||||
(update :data blob/decode))))
|
(update :data blob/decode)
|
||||||
|
(update :features db/decode-pgarray #{}))))
|
||||||
|
|
||||||
;; --- COMMAND: Duplicate Project
|
;; --- COMMAND: Duplicate Project
|
||||||
|
|
||||||
|
|
|
@ -146,7 +146,8 @@
|
||||||
(when-not is-shared
|
(when-not is-shared
|
||||||
(absorb-library conn params)
|
(absorb-library conn params)
|
||||||
(unlink-files conn params))
|
(unlink-files conn params))
|
||||||
(set-file-shared conn params)))
|
(-> (set-file-shared conn params)
|
||||||
|
(update :features db/decode-pgarray #{}))))
|
||||||
|
|
||||||
(defn- unlink-files
|
(defn- unlink-files
|
||||||
[conn {:keys [id] :as params}]
|
[conn {:keys [id] :as params}]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue