macos 卸载mongo 4.2.1 安装4.0
最后结果,降级到4.0社区版,ok
- 之前出错,主要是这段代码的问题,要用官方的这个版本,搭配4.0,代码在这里
/* eslint-disable */
exports.assignErizoControllerToRoom = function(room, erizoControllerId, callback) {
return db.eval(function(id, erizoControllerId) {
var erizoController;
var room = db.rooms.findOne({_id: new ObjectId(id)});
if (!room) {
return erizoController;
}
if (room.erizoControllerId) {
erizoController = db.erizoControllers.findOne({_id: room.erizoControllerId});
if (erizoController) {
return erizoController;
}
}
erizoController = db.erizoControllers.findOne({_id: new ObjectId(erizoControllerId)});
if (erizoController) {
r