批量处理的云函数调用失败,提示是什么意思?

发布于 5 年前作者 weigang9412 次浏览最后编辑 5 年前来自 issues
//index.js
const cloud = require('wx-server-sdk');

cloud.init({
  env: cloud.DYNAMIC_CURRENT_ENV
});
const db = cloud.database();

exports.main = async (event, context) => { 
  return await db.collection('comment').update({
      data: {
        good:1
      },
    });  
};

云函数如上。上传并部署后,调用时出现如下提示,哪里有问题呢?

1 回复
oyin
oyin1 楼5 个月前

你没加where条件