Skip to content

Commit 23cb90e

Browse files
committed
Re-add check statements.
1 parent 17ccabc commit 23cb90e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

files.coffee

+4
Original file line numberDiff line numberDiff line change
@@ -1440,6 +1440,8 @@ class FilesCollection
14401440
###
14411441
findOne: (selector, options) ->
14421442
console.info "[FilesCollection] [findOne(#{JSON.stringify(selector)}, #{JSON.stringify(options)})]" if @debug
1443+
check selector, Match.Optional Match.OneOf Object, String, null
1444+
check options, Match.Optional Object
14431445

14441446
selector = {} unless arguments.length
14451447
doc = @collection.findOne selector, options
@@ -1456,6 +1458,8 @@ class FilesCollection
14561458
###
14571459
find: (selector, options) ->
14581460
console.info "[FilesCollection] [find(#{JSON.stringify(selector)}, #{JSON.stringify(options)})]" if @debug
1461+
check selector, Match.Optional Match.OneOf Object, String, null
1462+
check options, Match.Optional Object
14591463

14601464
selector = {} unless arguments.length
14611465
return new FilesCursor selector, options, @

0 commit comments

Comments
 (0)