mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
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 commit is contained in:
@@ -57,7 +57,8 @@ Meteor.Collection = function (name, options) {
|
||||
self._connection = Meteor.server;
|
||||
|
||||
if (!options._driver) {
|
||||
if (name && self._connection === Meteor.server &&
|
||||
if (name && (self._connection !== null) &&
|
||||
self._connection === Meteor.server &&
|
||||
typeof MongoInternals !== "undefined" &&
|
||||
MongoInternals.defaultRemoteCollectionDriver) {
|
||||
options._driver = MongoInternals.defaultRemoteCollectionDriver();
|
||||
|
||||
Reference in New Issue
Block a user