From d79e35790f126a8e1aee8593f8a670a93e06aee7 Mon Sep 17 00:00:00 2001 From: "Michael S. Klishin" Date: Mon, 4 Jun 2012 13:24:58 +0400 Subject: [PATCH] Make sure namespaces that use monger.gridfs/make-input-file don't have to import GridFSInputFile --- src/monger/gridfs.clj | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/monger/gridfs.clj b/src/monger/gridfs.clj index 6a64d9b..9a8c5d3 100644 --- a/src/monger/gridfs.clj +++ b/src/monger/gridfs.clj @@ -65,12 +65,12 @@ ([] (map converter (all-files))) ([query] - (map converter (all-files query))) + (map converter (all-files (to-db-object query)))) ([^GridFS fs query] - (map converter (all-files fs query)))) + (map converter (all-files fs (to-db-object query))))) (defprotocol GridFSInputFileFactory - (^GridFSInputFile make-input-file [input] "Makes GridFSInputFile out of the given input")) + (^com.mongodb.gridfs.GridFSInputFile make-input-file [input] "Makes GridFSInputFile out of the given input")) (extend byte-array-type GridFSInputFileFactory