Skip to content

Commit 9b2ca21

Browse files
Merge pull request #419 from dmolin/patch/get-collection
Fix issue with Mongo.Collection.__getCollectionByName not resolving 'users' when used in Meteor 3.1
2 parents ca3fa64 + fdea1f8 commit 9b2ca21

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

lib/cache/ObservableCollection.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,7 @@ export default class ObservableCollection {
3131
this.cursorDescription = cursorDescription;
3232

3333
this.collectionName = this.cursorDescription.collectionName;
34-
this.collection = Mongo.Collection.__getCollectionByName(
35-
cursorDescription.collectionName
36-
);
34+
this.collection = Mongo.getCollection(cursorDescription.collectionName);
3735

3836
if (!this.collection) {
3937
throw new Meteor.Error(

0 commit comments

Comments
 (0)