Collection - Default options when using promiseLibrary

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Minor - P4
    • 2.0.37
    • 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).

              Assignee:
              Christian Amor Kvalheim
              Reporter:
              SciencePiggy [X]
              None
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: