Ctx.body cannot receive content in koa2

ctx.body = await service.get_search_data(start,count,keyword,(err,res)=>{
    if(err){
        return "";
    }else {
        return res;
        }
    }
)
The res in the

callback function can accept the data, so why can"t the ctx.body accept it?

Feb.28,2021

ctx.body = await new Promise((resolve, reject) => {
  service.get_search_data(start, count, keyword, (err, res) => err ? reject(err) : resolve(res))
})
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3547a-2bf96.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3547a-2bf96.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?