From f12f46981bcc1bde0f39b31fb6a3d86f9c2ab20e Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Mon, 1 Mar 2021 15:41:39 +0100 Subject: [PATCH] :bug: Add mising remap-id on onboarding files setup. --- backend/src/app/setup/initial_data.clj | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/backend/src/app/setup/initial_data.clj b/backend/src/app/setup/initial_data.clj index 573e042f0..092a0ea1c 100644 --- a/backend/src/app/setup/initial_data.clj +++ b/backend/src/app/setup/initial_data.clj @@ -134,7 +134,9 @@ (reduce #(assoc %1 (:id %2) (uuid/next)) index (:files data)) (reduce #(assoc %1 (:id %2) (uuid/next)) index (:fmeds data))) - flibs (map #(remap-id % index :file-id) (:flibs data)) + flibs (->> (:flibs data) + (map #(remap-id % index :file-id)) + (map #(remap-id % index :library-file-id))) files (->> (:files data) (map #(assoc % :id (get index (:id %))))