File tree 1 file changed +4
-0
lines changed
1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -1440,6 +1440,8 @@ class FilesCollection
1440
1440
###
1441
1441
findOne : (selector , options ) ->
1442
1442
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
1443
1445
1444
1446
selector = {} unless arguments .length
1445
1447
doc = @collection .findOne selector, options
@@ -1456,6 +1458,8 @@ class FilesCollection
1456
1458
###
1457
1459
find : (selector , options ) ->
1458
1460
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
1459
1463
1460
1464
selector = {} unless arguments .length
1461
1465
return new FilesCursor selector, options, @
You can’t perform that action at this time.
0 commit comments