-
My Fastify server code was working fine till last week. Now all of a sudden (I am sure some dependency somewhere got updated) I am getting errors on line where I am calling .addHook. I tried searching for similar issues but nothing helped. Error:
routes/user/index.js
checkIfAuthenticated
Essentially it's erroring here Any idea how I can resolve this and why this started erroring out only recently? Node: 16.15.0 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
This is correct. You are using an async function, you should not be accepting the |
Beta Was this translation helpful? Give feedback.
This is correct. You are using an async function, you should not be accepting the
next
parameter.