Update monger connect-via-uri call for lib changes

This commit is contained in:
Nicholas Kariniemi 2014-08-03 00:33:45 +03:00
parent 3f687afb4b
commit e79051f991

View file

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