liuyu hace 4 años
padre
commit
d7e830056b
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      app/model/location.js

+ 1 - 1
app/model/location.js

@@ -6,7 +6,7 @@ const metaPlugin = require('naf-framework-mongoose/lib/model/meta-plugin');
 const LocationSchema = {
   name: { type: String, required: true, maxLength: 500 }, // 名称
   type: { type: String, required: true, maxLength: 10 }, // 0、教室位置 1、开班仪式地点 2、拓展计划地点 3、用餐地点
-  ibeacon: { type: String, required: true, maxLength: 500 }, // 蓝牙设备号
+  ibeacon: { type: String, required: false, maxLength: 500 }, // 蓝牙设备号
 };