title: Two catches in one function
body: <p>I'm having some trouble getting two try-catches to work within one function, I'm quite new to JS and not exactly familiar with the functionality and limitations for try-catch. Currently working with a mongoDB database (Using mongoose). This is my code:</p>
  <pre><code>async function calcPoints() {
  ClanMember.countDocuments({}, async function (err, count) {
      for(var i = 0; i &lt; count; i++) {
          ClanMember.findOne({
              _id: i
          }, async (err, res) =&gt; {
              try {
                  //removed most of the code as it's quite long and irrelevant to my issue, just collecting info here
                  PointTrack.findOne({
                      membershipId: membershipId
                  }, async (err, res) =&gt; {
                      try {
                          //removed the code, if the id was found it updates the document
                      }
                      catch(err) {
                          //removed the code, if the id was not found it creates a new document 
                          done(err, null);
                      }
                  })
                  
              }
              catch(err) {
                  console.log(&quot;Something went wrong&quot;);
                  done(err, null);
              }
          })
      }
  })
  };
  </code></pre>
  <p>When i try to run the code i get this error code:</p>
  <pre><code>const { catch } = require(&quot;../database/database&quot;);
                ^
  SyntaxError: Unexpected token '}'
  
                          
  </code></pre>