You can now turn schedules on and off
This commit is contained in:
@@ -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)])))))
|
||||
|
||||
@@ -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)})]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user