You can now turn schedules on and off

This commit is contained in:
Bryce Covert
2018-04-05 15:10:08 -07:00
parent 2e827e1313
commit e6ab637641
6 changed files with 35 additions and 19 deletions

View File

@@ -19,5 +19,5 @@
))
(defn upsert [id data]
(j/update! (get-conn) :companies data ["id = ?" (Integer/parseInt id)] )
(merge-data (first (j/query (get-conn) ["SELECT * FROM companies WHERE id = ?" (Integer/parseInt id)]))))
(j/update! (get-conn) :companies (clj->db data) ["id = ?" (Integer/parseInt id)] )
(merge-data (db->clj (first (j/query (get-conn) ["SELECT * FROM companies WHERE id = ?" (Integer/parseInt id)])))))