mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
Fix C.find(selector, undefined)
Fixes test failure.
This commit is contained in:
@@ -207,12 +207,12 @@ _.extend(Meteor.Collection.prototype, {
|
||||
if (args.length < 2) {
|
||||
return { transform: self._transform };
|
||||
} else {
|
||||
check(args[1], Match.ObjectIncluding({
|
||||
check(args[1], Match.Optional(Match.ObjectIncluding({
|
||||
fields: Match.Optional(Object),
|
||||
sort: Match.Optional(Match.OneOf(Object, Array)),
|
||||
limit: Match.Optional(Number),
|
||||
skip: Match.Optional(Number)
|
||||
}));
|
||||
})));
|
||||
|
||||
return _.extend({
|
||||
transform: self._transform
|
||||
|
||||
Reference in New Issue
Block a user