await is only valid in async function, but in async method

前端 未结 0 378
面向向阳花
面向向阳花 2021-02-05 16:18

I have this method:

var updateProdCharTree = async (req, res) => {
var data = req.body.raw.data;
var productLine = req.body.raw.productLine;
var bu = req.body.         


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