From cfe6fae77d416d0a587b0b61955c4b563b7c0113 Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Tue, 19 Mar 2024 09:03:08 +0100 Subject: [PATCH] :bug: Fix incorrect version handling on file migration --- common/src/app/common/files/migrations.cljc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/src/app/common/files/migrations.cljc b/common/src/app/common/files/migrations.cljc index 105b64e5b..b62521b8f 100644 --- a/common/src/app/common/files/migrations.cljc +++ b/common/src/app/common/files/migrations.cljc @@ -73,7 +73,7 @@ [{:keys [version] :as file}] (if (int? version) file - (let [version (or version (-> file :data :version))] + (let [version (or (-> file :data :version) 0)] (-> file (assoc :version version) (update :data dissoc :version)))))