From 43b86d403ccb4647edc339f42d785e58b1198933 Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Fri, 18 Oct 2024 13:20:03 +0200 Subject: [PATCH] :sparkles: Remove unused props from binfile-v3 progress report message --- backend/src/app/binfile/v3.clj | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/backend/src/app/binfile/v3.clj b/backend/src/app/binfile/v3.clj index 605ca0bef..b68ec831f 100644 --- a/backend/src/app/binfile/v3.clj +++ b/backend/src/app/binfile/v3.clj @@ -648,7 +648,7 @@ :version (:version file) ::l/sync? true) - (events/tap :progress {:op :import :section :file :name file-name}) + (events/tap :progress {:section :file :name file-name}) (when media ;; Update index with media @@ -694,8 +694,7 @@ (defn- import-file-relations [{:keys [::db/conn ::manifest ::bfc/timestamp] :as cfg}] - (events/tap :progress {:op :import :section :relations}) - + (events/tap :progress {:section :relations}) (doseq [[file-id libr-id] (:relations manifest)] (let [file-id (bfc/lookup-index file-id) @@ -713,7 +712,7 @@ (defn- import-storage-objects [{:keys [::input ::entries ::bfc/timestamp] :as cfg}] - (events/tap :progress {:op :import :section :storage-objects}) + (events/tap :progress {:section :storage-objects}) (let [storage (sto/resolve cfg) entries (keep (match-storage-entry-fn) entries)] @@ -769,7 +768,7 @@ (defn- import-file-media [{:keys [::db/conn] :as cfg}] - (events/tap :progress {:op :import :section :media}) + (events/tap :progress {:section :media}) (doseq [item (:media @bfc/*state*)] (let [params (-> item @@ -788,7 +787,7 @@ (defn- import-file-thumbnails [{:keys [::db/conn] :as cfg}] - (events/tap :progress {:op :import :section :thumbnails}) + (events/tap :progress {:section :thumbnails}) (doseq [item (:thumbnails @bfc/*state*)] (let [file-id (bfc/lookup-index (:file-id item)) media-id (bfc/lookup-index (:media-id item)) @@ -839,7 +838,7 @@ :path path :file-id file-id)))) - (events/tap :progress {:op :import :section :manifest}) + (events/tap :progress {:section :manifest}) (let [index (bfc/update-index (map :id (:files manifest))) state {:media [] :index index}