mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
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 94f5efc893.
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.
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user