opts.session.inTransaction is not a function in utils.js

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Works as Designed
    • Priority: Major - P3
    • None
    • Affects Version/s: 3.3.2
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Hi,

       

      Some of the libraries we're using will have an error thrown from Mongo DB Node JS library, "opts.session.inTransaction is not a function", maybe utils.js check should be changed from

      options.session && options.session.inTransaction()

      to

       

      options.session && options.session.inTransaction && options.session.inTransaction()

       

       

      Thanks!

       

      Best regards,

      Manny

            Assignee:
            Matt Broadstone
            Reporter:
            Manny Vergel
            None
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: