From ca47c01b9be324dfeedd71a37ece447930e83473 Mon Sep 17 00:00:00 2001 From: David Glasser Date: Wed, 5 Mar 2014 13:58:45 -0800 Subject: [PATCH] Revert "If we are opening a local minimongo collection, and are not defined as the client, then the server can be null, but we should still be able to connect to a local minimongo db.There are not any cases where the conenction is null, where we would want to proceed." This reverts commit 94f5efc893a482dc82472e3ce09ffd38b2e06363. That commit is good but somewhat incomplete because there are two other places in collection.js that do comparisons against Meteor.server. Rather than put the time in now to get it perfect, we're just going to not use *named* Meteor.Collections in a non-webapp server program for now. --- packages/mongo-livedata/collection.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/mongo-livedata/collection.js b/packages/mongo-livedata/collection.js index aa26b19c20..9dff5cb778 100644 --- a/packages/mongo-livedata/collection.js +++ b/packages/mongo-livedata/collection.js @@ -57,8 +57,7 @@ Meteor.Collection = function (name, options) { self._connection = Meteor.server; if (!options._driver) { - if (name && (self._connection !== null) && - self._connection === Meteor.server && + if (name && self._connection === Meteor.server && typeof MongoInternals !== "undefined" && MongoInternals.defaultRemoteCollectionDriver) { options._driver = MongoInternals.defaultRemoteCollectionDriver();