Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

maybe-init issues

  • Loading branch information...
commit 0ed6a2e1b433a77a2de86209737e6e2a8e9580ba 1 parent a623cce
@zolrath authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  src/andrew_site/models/db.clj
View
2  src/andrew_site/models/db.clj
@@ -9,7 +9,7 @@
"Parses mongodb url from heroku, eg. mongodb://user:pass@localhost:1234/db"
(let [matcher (re-matcher #"^.*://(.*?):(.*?)@(.*?):(\d+)/(.*)$" url)] ;; Setup the regex.
(when (.find matcher) ;; Check if it matches.
- (zipmap [:match :user :pass :hOst :port :db] (re-groups matcher))))) ;; Construct an options map.
+ (zipmap [:match :user :pass :host :port :db] (re-groups matcher))))) ;; Construct an options map.
(defn maybe-init []
"Checks if connection and collection exist, otherwise initialize."
Please sign in to comment.
Something went wrong with that request. Please try again.