calling a controller function with promise unable to await with then function

前端 未结 0 1049
野性不改
野性不改 2020-12-04 07:50

I have a function in a controller that wants to create two different models if a condition is satisfied in the data base. The API gets called:

PUT localhost:3000/user

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