Tienson Qin 1 месяц назад
Родитель
Сommit
5fe4ec4dde
1 измененных файлов с 9 добавлено и 7 удалено
  1. 9 7
      src/main/frontend/worker/sync.cljs

+ 9 - 7
src/main/frontend/worker/sync.cljs

@@ -437,13 +437,15 @@
 ;; TODO: is this really needed?
 ;; TODO: is this really needed?
 (defn- keep-last-update
 (defn- keep-last-update
   [tx-data]
   [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
 (defn- sanitize-tx-data
   [db tx-data local-deleted-ids]
   [db tx-data local-deleted-ids]