Skip to content

Commit

Permalink
Fix fields selector type
Browse files Browse the repository at this point in the history
  • Loading branch information
mpenttila committed Jan 18, 2020
1 parent 0d5eb21 commit 46e3a95
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion project.clj
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
(defproject lupapiste/mongocheck "0.1.4-alpha5"
(defproject lupapiste/mongocheck "0.1.4-alpha6"
:description "Library for running checks on MongoDB data"
:url "http://www.solita.fi"
:license {:name "Eclipse Public License"
Expand Down
4 changes: 2 additions & 2 deletions src/lupapiste/mongocheck/core.clj
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,10 @@
doall))

(defn- execute-collection-checks [db collection {:keys [columns checks]}]
(let [coll-str (name collection)
(let [coll-str (name collection)
documents (mq/with-collection db coll-str
(mq/find {})
(mq/fields columns)
(mq/fields (zipmap columns (repeat 1)))
(mq/sort (array-map :modified -1))
(mq/limit 10000))
results (->> documents
Expand Down

0 comments on commit 46e3a95

Please sign in to comment.