title: Global variable not updated
body: <p>I have a problem in this code.<br />
  I am trying to parse an excel file but cannot make the parent relationship.<br />
  Parent records are created successfully, child records are also created, but parent_id is always 0</p>
  <pre><code>    let parent_id = 0; // this var not updated!!!
      let workbook = new Excel.Workbook()
      workbook = await workbook.xlsx.readFile(location)
      workbook.worksheets[0].eachRow(async (row) =&gt; {
          console.log(parent_id) // each time 0,0,0,0
          const name = row.getCell(1).value
          const obj = {
              name,
              number: row.getCell(2).value,
              parent_id: name ? null : parent_id
          }
          if(obj.number &amp;&amp; Number(obj.number) == obj.number){
              const node = await LeadNode.create(obj)
              if(name){
                  parent_id = node.id
                  console.log(parent_id) // work here 1,2,3,4,5
              }
          }
      });
  </code></pre>
  <p><a href="https://i.stack.imgur.com/wSZfD.png" rel="nofollow noreferrer">db screen</a></p>