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

+ 1 - 1
app/model/teacher.js

@@ -46,7 +46,7 @@ const TeacherSchema = {
   zynumberfile: { type: [zynumberfileInfo], select: true }, // 职业资格证图片
   schid: { type: String, required: false, maxLength: 200 }, // 学校id
   schname: { type: String, required: false, maxLength: 200 }, // 学校名称
-  email: { type: String, required: true, maxLength: 200 }, // 邮箱
+  email: { type: String, required: 1, maxLength: 200 }, // 邮箱
   openid: { type: String, required: false, maxLength: 200 }, // 微信openid
   age: { type: String, required: false, maxLength: 200 }, // 年龄
   birthday: { type: String, required: false, maxLength: 200 }, // 出生年月