checks are now stored

This commit is contained in:
Bryce Covert
2018-05-12 15:57:42 -07:00
parent 501a3f0ff1
commit fd2164e8ba
5 changed files with 134 additions and 49 deletions

View File

@@ -31,6 +31,16 @@
(dissoc :pdf-data)
(dissoc :invoices)))
(defn insert! [row]
(-> (j/insert! (get-conn)
:checks
(-> row
fields->data
clj->db))
first
db->clj
data->fields))
(defn insert-multi! [rows]
(->> (j/insert-multi! (get-conn)
:checks