From b191df0351f61ad37d17804a4d34ab30ec78ad7f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9s=20Moya?= Date: Fri, 21 Oct 2022 16:45:53 +0200 Subject: [PATCH] :bug: Fix bug about decoding :features PgArray --- backend/src/app/rpc/commands/management.clj | 3 ++- backend/src/app/rpc/mutations/files.clj | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/backend/src/app/rpc/commands/management.clj b/backend/src/app/rpc/commands/management.clj index 883202fad7..c68ecaea3e 100644 --- a/backend/src/app/rpc/commands/management.clj +++ b/backend/src/app/rpc/commands/management.clj @@ -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 diff --git a/backend/src/app/rpc/mutations/files.clj b/backend/src/app/rpc/mutations/files.clj index 14d79347a9..5884a1a435 100644 --- a/backend/src/app/rpc/mutations/files.clj +++ b/backend/src/app/rpc/mutations/files.clj @@ -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}]