From 840801ea15d9ecf7cac43e7db499350ef4246836 Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Fri, 23 Jun 2023 16:24:20 +0200 Subject: [PATCH] :bug: Don't update modified_at field on applying components migration --- backend/src/app/rpc/commands/files.clj | 3 --- 1 file changed, 3 deletions(-) diff --git a/backend/src/app/rpc/commands/files.clj b/backend/src/app/rpc/commands/files.clj index 2bcf8ddf0..bc34c69b7 100644 --- a/backend/src/app/rpc/commands/files.clj +++ b/backend/src/app/rpc/commands/files.clj @@ -273,16 +273,13 @@ (binding [pmap/*tracked* (atom {})] (let [data (ctf/migrate-to-components-v2 data) features (conj features "components/v2") - modified-at (dt/now) features' (db/create-array conn "text" features)] (db/update! conn :file {:data (blob/encode data) - :modified-at modified-at :features features'} {:id id}) (persist-pointers! conn id) (-> file - (assoc :modified-at modified-at) (assoc :features features) (assoc :data data)))) file)]