diff --git a/erizo_controller/erizoController/models/Room.js b/erizo_controller/erizoController/models/Room.js index 8b98be9aae..1eff4366b5 100644 --- a/erizo_controller/erizoController/models/Room.js +++ b/erizo_controller/erizoController/models/Room.js @@ -114,7 +114,7 @@ class Rooms extends events.EventEmitter { } forEachRoom(doSomething) { - this.rooms.values().forEach((room) => { + this.rooms.forEach((room) => { doSomething(room); }); }