From 8fa7fa8c4bd1d61a3a07fc527bce7c6bb5eb0391 Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Fri, 9 May 2025 10:52:41 +0200 Subject: [PATCH] :bug: Fix incorrect features asignation after file migration --- common/src/app/common/files/migrations.cljc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/src/app/common/files/migrations.cljc b/common/src/app/common/files/migrations.cljc index 46e20537c..23c7f04e9 100644 --- a/common/src/app/common/files/migrations.cljc +++ b/common/src/app/common/files/migrations.cljc @@ -99,13 +99,13 @@ (if (nil? migrations) (generate-migrations-from-version version) migrations))) - (update :features (fnil into #{}) (deref cfeat/*new*)) ;; NOTE: in some future we can consider to apply ;; a migration to the whole database and remove ;; this code from this function that executes on ;; each file migration operation (update :features cfeat/migrate-legacy-features) - (migrate))))) + (migrate) + (update :features (fnil into #{}) (deref cfeat/*new*)))))) (defn migrated? [file]