You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I had a completely other problem, however, I encounterned a possible fault in the mongodb store L389: this.events.update({'_id' : id}, updateCommand, callback);
The corresponding function in the mongodb driver L1084 expects another signature: Collection.prototype.update = function(selector, document, options, callback) {
No clue, why everything is still working... the function from mongodb does not handle this correctly, but returns a Promise instead of calling the callback.
The text was updated successfully, but these errors were encountered:
The callback is not called in the first place, because we're calling it incorrectly. So, it proceeds and creates the promise. updateDocuments however, interprets options, which is our callback function, as the callback we'd expect to resolve the promise. updateDocument calls our callback from within the promise, but not the handler that ought to resolve the promise.
I had a completely other problem, however, I encounterned a possible fault in the mongodb store L389:
this.events.update({'_id' : id}, updateCommand, callback);
The corresponding function in the mongodb driver L1084 expects another signature:
Collection.prototype.update = function(selector, document, options, callback) {
No clue, why everything is still working... the function from mongodb does not handle this correctly, but returns a Promise instead of calling the callback.
The text was updated successfully, but these errors were encountered: