Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 5a10c24

Browse files
committed
Fix to avoid MongoInternals in the client
1 parent 79c8667 commit 5a10c24

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/mongo/collection.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -935,4 +935,6 @@ createAsyncCollection = (name, optionsParam = {}) => {
935935

936936
Mongo.createAsyncCollection = createAsyncCollection;
937937

938-
Promise.await(MongoInternals.defaultRemoteCollectionDriver());
938+
if (Meteor.isServer) {
939+
Promise.await(MongoInternals.defaultRemoteCollectionDriver());
940+
}

0 commit comments

Comments
 (0)