             (let [batch (if (= :collection (cs/concept-id->type (:concept-id (first batch))))
                           ;; Get the tag associations as well.
                           (map (fn [concept]
-                                (let [tag-associations (mdb/get-tag-associations-for-collection concept)]
-                                  (assoc concept :tag-associations tag-associations)))
+                                 (let [tag-associations (mdb/get-tag-associations-for-collection concept)]
+                                   (assoc concept :tag-associations tag-associations)))
                                batch)
                           ;; Just use the concepts as is.
                           batch)

                {:term {(query-field->elastic-field :collection-concept-id :granule)
                        concept-id}}))))))))

(defn force-delete-collection-revision
  "Removes a collection revision from the all revisions index"
  [context concept-id revision-id]

            delete-time (get-in parsed-concept [:data-provider-timestamps :delete-time])]
        (when (or (nil? delete-time) (> (compare delete-time (tk/now)) 0))
          (let [tag-associations (mdb/get-tag-associations-for-collection context concept)
                elastic-version (es/get-elastic-version (assoc concept :tag-associations tag-associations))
                tag-associations (map cp/parse-concept (filter #(not (:deleted %)) tag-associations))
                concept-index (idx-set/get-concept-index-name context concept-id revision-id
                                                              all-revisions-index? concept)
