Here is what I have already:
myFunct({ myObj: { db } })
I need to add another function in such as:
myFunct({ myObj: async ({ req }) => {
  //more scripts
} })
What I tried and failed:
myFunct({ myObj: {
  db,
  async (req) => {
    //more scripts
  }
} })
At the => I get the syntax error:
Unexpected token, expected {
 
     
    