-
Type:
Bug
-
Resolution: Done
-
Priority:
Minor - P4
-
Affects Version/s: 2.0.36
-
Component/s: None
-
None
-
None
-
None
-
None
-
None
-
None
-
None
Affects the following Collection methods ...
- findOneAndDelete
- findOneAndReplace
- findOneAndUpdate
When calling these methods with no options and a callback, options is defaulted to {}. When using no options and a promiseLibrary, options are left as undefined. This causes an error in the self.findAndModify( ... ) call (cannot read property 'sort' of undefined).