Browse Source

Quick fix.

KrisVos130 9 năm trước cách đây
mục cha
commit
5331972125
1 tập tin đã thay đổi với 0 bổ sung7 xóa
  1. 0 7
      app/server/server.js

+ 0 - 7
app/server/server.js

@@ -511,13 +511,6 @@ function PrivateStation(name) {
     };
     this.name = name;
 
-    var private = PrivateRooms.findOne({name: name}).private;
-
-    if (typeof private !== "boolean") {
-        PrivateRooms.update({name: name}, {$set: {"private": false}});
-        private = false;
-    }
-
     this.private = private;
 
     this.unlock = function () {