liuyu 4 năm trước cách đây
mục cha
commit
36e2fca1ee
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      app/model/room.js

+ 1 - 1
app/model/room.js

@@ -9,7 +9,7 @@ const RoomSchema = {
   url: { type: String, required: false, maxLength: 200 }, // 房间地址
   anchorid: { type: String, required: false, maxLength: 200 }, // 主播id
   username: { type: String, required: false, maxLength: 200 }, // 主播名称
-  status: { type: String, required: false, maxLength: 64 }, // 状态0、开启1、关闭
+  status: { type: String, required: false, maxLength: 64, default: '0' }, // 状态0、开启1、关闭
 };
 
 const schema = new Schema(RoomSchema, { toJSON: { virtuals: true } });