liuyu 4 년 전
부모
커밋
36e2fca1ee
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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 } });