1
0
Эх сурвалжийг харах

chore: remove nonexistent fix-tx

Gabriel Horner 1 жил өмнө
parent
commit
fd5b90596b

+ 2 - 2
deps/db/src/logseq/db.cljs

@@ -72,8 +72,8 @@
      ;; Because UI assumes that the in-memory db has all the data except the last one transaction
      ;; Because UI assumes that the in-memory db has all the data except the last one transaction
      (when (seq tx-data)
      (when (seq tx-data)
 
 
-       ;; (prn :debug :transact :sync? (= d/transact! (or @*transact-fn d/transact!)))
-       ;; (cljs.pprint/pprint tx-data)
+      ;;  (prn :debug :transact :sync? (= d/transact! (or @*transact-fn d/transact!)) :tx-meta tx-meta)
+      ;;  (cljs.pprint/pprint tx-data)
 
 
        (let [f (or @*transact-fn d/transact!)]
        (let [f (or @*transact-fn d/transact!)]
          (f repo-or-conn tx-data tx-meta))))))
          (f repo-or-conn tx-data tx-meta))))))

+ 1 - 1
deps/outliner/src/logseq/outliner/property.cljs

@@ -330,7 +330,7 @@
                            property-block (when block-value? (d/entity @conn (:db/id value)))
                            property-block (when block-value? (d/entity @conn (:db/id value)))
                            blocks-with-this-value (and block-value?
                            blocks-with-this-value (and block-value?
                                                        (set (map :e (d/datoms @conn :avet (:db/ident property) (:db/id value)))))
                                                        (set (map :e (d/datoms @conn :avet (:db/ident property) (:db/id value)))))
-                           ;; Delete property value block iff it's not a closed value and it's no longer used by other blocks
+                           ;; Delete property value block if it's not a closed value and it's no longer used by other blocks
                            retract-blocks-tx (when (and property-block
                            retract-blocks-tx (when (and property-block
                                                         (some? (get property-block :logseq.property/created-from-property))
                                                         (some? (get property-block :logseq.property/created-from-property))
                                                         (not (contains? (:block/type value) "closed value"))
                                                         (not (contains? (:block/type value) "closed value"))

+ 1 - 2
src/main/frontend/worker/pipeline.cljs

@@ -107,10 +107,9 @@
                            (do
                            (do
                              (when-not (exists? js/process) (d/store @conn))
                              (when-not (exists? js/process) (d/store @conn))
                              tx-report))
                              tx-report))
-              fix-tx-data (validate-db! repo conn tx-report context)
+              _ (validate-db! repo conn tx-report context)
               full-tx-data (concat (:tx-data tx-report)
               full-tx-data (concat (:tx-data tx-report)
                                    (:tx-data refs-tx-report)
                                    (:tx-data refs-tx-report)
-                                   fix-tx-data
                                    (:tx-data tx-report'))
                                    (:tx-data tx-report'))
               final-tx-report (assoc tx-report' :tx-data full-tx-data)
               final-tx-report (assoc tx-report' :tx-data full-tx-data)
               affected-query-keys (when-not (:importing? context)
               affected-query-keys (when-not (:importing? context)