不工作文档删除回调总是错误= null查询返回 是错的,是的。查询返回是cor null
activity.remove: (id) => {
try {
activitys.remove({
$and: [{
_id: id
},
{
owner: Meteor.userId()
}
]
}, (error) => {
console.log(error);
if (!error) {
console.log("success");
} else {
console.log("error oldu");
}
});
} catch (e) {
throw new Meteor.Error(e.error, e.reason);
}
}