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
This always passes callback as undefined if there is no options parameter. What we need to do is to use apply instead and trim undefineds off the end of the array (but not undefineds between arguments, which are valid if we want to skip arguments).
So the workaround would be to call CollectionName.update(selector, modifier, undefined, function(err, res) { // etc }); Otherwise, callbacks don't work.
I will test my fix and then submit a pull request.
Investigating the issue more deeply; stand by.
The text was updated successfully, but these errors were encountered: