From b87f0bd5e82289c181bce9a1af8f1ad264daeab2 Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Wed, 31 May 2023 18:37:28 +0200 Subject: [PATCH] :bug: Fix issue on features handling function --- backend/src/app/rpc/commands/files.clj | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/src/app/rpc/commands/files.clj b/backend/src/app/rpc/commands/files.clj index 07053e666..a7884636c 100644 --- a/backend/src/app/rpc/commands/files.clj +++ b/backend/src/app/rpc/commands/files.clj @@ -269,11 +269,11 @@ (let [data (ctf/migrate-to-components-v2 data) features (conj features "components/v2") modified-at (dt/now) - features (db/create-array conn "text" features)] + features' (db/create-array conn "text" features)] (db/update! conn :file {:data (blob/encode data) :modified-at modified-at - :features features} + :features features'} {:id id}) (persist-pointers! conn id) (-> file