Why does catch() block in mongoose query not exit the function when returning next(err)?

前端 未结 0 1768
夕颜
夕颜 2021-01-26 04:47

I have this basic function being called by my express router.

export const createThing = async(req,res,next) => {
    const {body} = req;
    const thing = awa         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题