Checks now have a status that gets updated

This commit is contained in:
Bryce
2018-06-30 10:24:41 -07:00
parent e7515e5a00
commit 05c9fa8fd8
6 changed files with 29 additions and 5 deletions

View File

@@ -85,3 +85,9 @@
(defn count-graphql [args]
(:count (first (query
(assoc (base-graphql args) :select [:%count.*])))))
(defn update! [row]
(j/update! (get-conn)
:checks
(-> row (fields->data) (clj->db))
["id = ?" (:id row)]))