another debug

This commit is contained in:
Tienson Qin
2026-01-29 23:13:34 +08:00
parent a1bfdec3ec
commit 5fe4ec4dde

View File

@@ -437,13 +437,15 @@
;; TODO: is this really needed?
(defn- keep-last-update
[tx-data]
(->> tx-data
(common-util/distinct-by-last-wins
(fn [item]
(if (and (vector? item) (= 5 (count item))
(contains? #{:block/updated-at :block/title :block/name :block/order} (nth item 2)))
(take 3 item)
item)))))
tx-data
;; (->> tx-data
;; (common-util/distinct-by-last-wins
;; (fn [item]
;; (if (and (vector? item) (= 5 (count item))
;; (contains? #{:block/updated-at :block/title :block/name :block/order} (nth item 2)))
;; (take 3 item)
;; item))))
)
(defn- sanitize-tx-data
[db tx-data local-deleted-ids]