Fixes a bug with the 5-arity ensure-index function. The argument
named `name` shadowed clojure.core/name, so trying to call `name` as a function on line 426 throws an exception. Fixes the bug by renaming the argument to `index-name`.
This commit is contained in:
parent
d337cd1546
commit
9c0f385ab2
1 changed files with 2 additions and 2 deletions
|
|
@ -422,10 +422,10 @@
|
|||
(.createIndex (.getCollection db (name coll))
|
||||
(as-field-selector keys)
|
||||
(to-db-object options)))
|
||||
([^DB db ^String coll ^Map keys ^String name unique?]
|
||||
([^DB db ^String coll ^Map keys ^String index-name unique?]
|
||||
(.createIndex (.getCollection db (name coll))
|
||||
(as-field-selector keys)
|
||||
name
|
||||
index-name
|
||||
unique?)))
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue