guhongwei 3 년 전
부모
커밋
bfb5c8d33f
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      app/model/patent/patentchat.js

+ 1 - 1
app/model/patent/patentchat.js

@@ -12,7 +12,7 @@ const patentchat = {
   receiver_id: { type: ObjectId, required: true }, // 接收人id
   receiver_name: { type: String, required: false }, // 接收人名字
   type: { type: String, required: false }, // 内容類型:1:内容,2:文件
-  content: { type: String, required: true }, // 内容
+  content: { type: String, required: false }, // 内容
   file: { type: Array }, // 文件
   is_read: { type: Boolean, default: false }, // 是否已读
   send_time: { type: String, default: moment().format('YYYY-MM-DD HH:mm:ss') },