这是我要更新的代码:
mongodb.model("Participant").find({ channel: response.channel }, function (err, doc){
doc.status = 1;
doc.save();
});
我收到了这个错误:
doc.save();
^
TypeError: Object { _id: 55f365f32d051f10024d9c9d,
event: 'ConfbridgeJoin',
channel: 'SIP/192.168.236.15-00000213',
uniqueid: '1442014697.1157',
conference: '0090000218',
calleridnum: '0090000219',
calleridname: '0090000219',
__v: 0,
status: false } has no method 'save'
it errors status:false}没有方法'save'