Just as I thought I understood promises... I have commented my code below where I am struggling, but in essence, I just can't understand why when the code below is run I get the following result

```
console.log("Finished Processing sheets")
console.log("Processing Errors")
console.log("sheet has completed processing")

```

When I would have expected

```
console.log("sheet has completed processing")
console.log("Finished Processing sheets")
console.log("Processing Errors")

```

Here is the code.

```
module.exports = async function(file) {
var sheets = await readXLSX(file, { getSheets: true })

  await Promise.each(Object.values(sheets), (sheet)=>{
    readXLSX(file, { sheet }).then((data)=>{
      //Process sheet data here
      return processSheet(data)
    })
  })
  console.log("Finished Processing sheets")
  console.log("Processing Errors")

}
var processSheet = async function(data){
//Do some processing and write excel data to database
await db.table('some_table')
.insert(.....)

return new Promise((resolve, reject)=>{
console.log("sheet has completed processing")
resolve()
})
}

```