Skip to content

Commit

Permalink
Merge pull request #88 from jenwei/patch-1
Browse files Browse the repository at this point in the history
Add callback error handling in queryPollDoc
  • Loading branch information
ericyhwang authored May 13, 2020
2 parents 0859e84 + f6e6099 commit 455af8a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -829,6 +829,7 @@ ShareDbMongo.prototype.queryPoll = function(collectionName, inputQuery, options,
ShareDbMongo.prototype.queryPollDoc = function(collectionName, id, inputQuery, options, callback) {
var self = this;
self.getCollectionPoll(collectionName, function(err, collection) {
if (err) return callback(err);
var parsed = self._getSafeParsedQuery(inputQuery, callback);
if (!parsed) return;

Expand Down

0 comments on commit 455af8a

Please sign in to comment.