 
 (defn get-users-by-email
   [emails]
-  (kdb/with-db db-spec
+  (kdb/with-db (db-spec)
     (->
       get-users-with-stats
       (ko/where (in :email emails))



(def db-spec
  (heroku-db-spec (env/env :database-url)))


(declare users conversations votes participants)


(defn get-users-by-uid
  [uids]
  (kdb/with-db (db-spec)
    (->
      get-users-with-stats
      (ko/where (in :uid uids))
