Should be use-db! here
This commit is contained in:
parent
62013fd070
commit
43e40f5f14
1 changed files with 1 additions and 1 deletions
|
|
@ -8,7 +8,7 @@ on the default database:
|
||||||
``` clojure
|
``` clojure
|
||||||
(let [username "myservice"
|
(let [username "myservice"
|
||||||
pwd "LGo5h#B`cTRQ>28tba6u"]
|
pwd "LGo5h#B`cTRQ>28tba6u"]
|
||||||
(monger.core/set-db! "mydb")
|
(monger.core/use-db! "mydb")
|
||||||
;; authenticates requests for mydb
|
;; authenticates requests for mydb
|
||||||
(monger.core/authenticate username (.toCharArray pwd)))
|
(monger.core/authenticate username (.toCharArray pwd)))
|
||||||
```
|
```
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue