It's pronounced Diane. I do data architecture, operations, and backend development. In my spare time I maintain Massive.js, a data mapper for Node.js and PostgreSQL.
Unless it's in the code you've omitted, you aren't actually executing getProductCount, only declaring it. I believe you can use async functions as routes with Express now so you shouldn't even need to split things out into a nested function like that.
Unless it's in the code you've omitted, you aren't actually executing
getProductCount
, only declaring it. I believe you can use async functions as routes with Express now so you shouldn't even need to split things out into a nested function like that.Thank you. You have right I do not executing the function. Now it works