From 9961cef505ea8d0c1a1d44cd861ff72ef370e286 Mon Sep 17 00:00:00 2001 From: David Glasser Date: Wed, 19 Mar 2014 17:09:33 -0700 Subject: [PATCH] Fix C.find(selector, undefined) Fixes test failure. --- packages/mongo-livedata/collection.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/mongo-livedata/collection.js b/packages/mongo-livedata/collection.js index 08b3b27a1f..4eac2acd32 100644 --- a/packages/mongo-livedata/collection.js +++ b/packages/mongo-livedata/collection.js @@ -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