Fix C.find(selector, undefined)

Fixes test failure.
This commit is contained in:
David Glasser
2014-03-19 17:09:33 -07:00
parent 30c23ec8b6
commit 9961cef505

View File

@@ -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