Async await handle Promise { } Express API

后端 未结 0 1514
粉色の甜心
粉色の甜心 2020-12-06 06:01

I got this API controler:

exports.doctorsList = async (req, res) => {
    const users = await User.find().exec();
    let responseArray = await users.map(a         


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