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)])))))

View File

@@ -59,8 +59,7 @@
profile (-> (http/get "https://www.googleapis.com/oauth2/v1/userinfo"
{:headers {"Authorization" (str "Bearer " token)} :as :json})
:body
(doto println)
)
(doto println))
user (users/find-or-insert! {:provider "google"
:provider_id (:id profile)})]