How return default value if condition doesn't found value

后端 未结 0 699
独厮守ぢ
独厮守ぢ 2020-12-07 16:12

I have an query.

async function getConfig(configId, country) {
    return await db.config.findOne({
        attributes: [\'id\', \'version\', ...],
        wh         


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