First step of adding general ledger.
This commit is contained in:
18
src/clj/auto_ap/ledger.clj
Normal file
18
src/clj/auto_ap/ledger.clj
Normal file
@@ -0,0 +1,18 @@
|
||||
(ns auto-ap.ledger
|
||||
(:require [datomic.api :as d]
|
||||
[auto-ap.datomic :refer [uri]]))
|
||||
|
||||
(defonce report-queue (d/tx-report-queue (d/connect uri) ) )
|
||||
|
||||
(let [transaction (.peek report-queue)]
|
||||
(->> (:tx-data transaction)
|
||||
(map (fn [x]
|
||||
(.getY x)
|
||||
(println id)))
|
||||
))
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -10,7 +10,6 @@
|
||||
[clojure.walk :as walk]
|
||||
[venia.core :as v]
|
||||
[auto-ap.history :as p]
|
||||
[auto-ap.events :as events]
|
||||
[pushy.core :as pushy]))
|
||||
|
||||
(re-frame/reg-fx
|
||||
@@ -158,7 +157,7 @@
|
||||
"&variables=" (pr-str (or variables {})))}))]
|
||||
(cond
|
||||
(= (:status response) 401)
|
||||
(re-frame/dispatch [::events/logout "Your session has expired. Please log in again."])
|
||||
(re-frame/dispatch [:auto-ap.events/logout "Your session has expired. Please log in again."])
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user