liuyu há 4 anos atrás
pai
commit
36e2fca1ee
1 ficheiros alterados com 1 adições e 1 exclusões
  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 } });