reloaded 5 роки тому
батько
коміт
5fced9099c
1 змінених файлів з 1 додано та 1 видалено
  1. 1 1
      app/model/comment.js

+ 1 - 1
app/model/comment.js

@@ -8,7 +8,7 @@ const CommentSchema = {
   uid: { type: String, required: true, maxLength: 500 }, // 用户ID
   uid: { type: String, required: true, maxLength: 500 }, // 用户ID
   content: { type: String, required: true }, // 评论内容
   content: { type: String, required: true }, // 评论内容
   public_time: { type: String, required: false, maxLength: 500 }, // 发布时间
   public_time: { type: String, required: false, maxLength: 500 }, // 发布时间
-  status: { type: String, required: false, maxLength: 100 }, // 状态,0-未审核,1-审核通过,2-审核拒绝
+  status: { type: String, required: false, maxLength: 100, default: '0' }, // 状态,0-未审核,1-审核通过,2-审核拒绝
 };
 };