fixes double click import ledger bug

This commit is contained in:
2021-05-27 06:58:01 -07:00
parent 01d122a4d7
commit c7055d7a70
2 changed files with 10 additions and 1 deletions

View File

@@ -377,6 +377,14 @@
'[(= ?ad true)]]}
:args [i (d/history (d/db (d/connect uri)))]}))))
(defn entity-history-with-revert [i]
(vec (sort-by first (d/query
{:query {:find ['?tx '?z '?v '?ad ]
:in ['?i '$]
:where ['[?i ?a ?v ?tx ?ad]
'[?a :db/ident ?z]]}
:args [i (d/history (d/db (d/connect uri)))]}))))
(defn tx-detail [i]
(map (juxt :e #(d/ident (d/db (d/connect uri)) (:a %)) :v)
(:data (first