From 95c4d95fd324724a6ffed11551209574a502b336 Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Tue, 22 Apr 2025 15:01:33 +0200 Subject: [PATCH] :paperclip: Use d/update-vals instead of update-vals on migrations --- common/src/app/common/files/migrations.cljc | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/common/src/app/common/files/migrations.cljc b/common/src/app/common/files/migrations.cljc index 734b3e4299..b0c806103c 100644 --- a/common/src/app/common/files/migrations.cljc +++ b/common/src/app/common/files/migrations.cljc @@ -1207,11 +1207,11 @@ object)) (update-container [container] - (d/update-when container :objects update-vals update-object))] + (d/update-when container :objects d/update-vals update-object))] (-> data - (update :pages-index update-vals update-container) - (update :components update-vals update-container)))) + (update :pages-index d/update-vals update-container) + (update :components d/update-vals update-container)))) (defmethod migrate-data "legacy-67" [data _] @@ -1222,8 +1222,8 @@ (d/update-when container :objects update-vals update-object))] (-> data - (update :pages-index update-vals update-container) - (update :components update-vals update-container)))) + (update :pages-index d/update-vals update-container) + (update :components d/update-vals update-container)))) (defmethod migrate-data "0001-remove-tokens-from-groups" [data _] @@ -1237,8 +1237,10 @@ (dissoc :applied-tokens))) (update-page [page] - (d/update-when page :objects update-vals update-object))] - (update data :pages-index update-vals update-page))) + (d/update-when page :objects d/update-vals update-object))] + + (update data :pages-index d/update-vals update-page))) + (def available-migrations (into (d/ordered-set)