diff --git a/src/clj/grub/db.clj b/src/clj/grub/db.clj index 4e38793..f1fe8c4 100644 --- a/src/clj/grub/db.clj +++ b/src/clj/grub/db.clj @@ -91,7 +91,7 @@ (defn connect! [db-name mongo-url] (if mongo-url (do (println "Connected to mongo via url:" mongo-url) - (m/connect-via-uri mongo-url)) + (:conn (m/connect-via-uri mongo-url))) (do (println "Connected to mongo at localhost:" db-name) (m/connect))))