瀏覽代碼

默认值

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
   content: { type: String, required: true }, // 评论内容
   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-审核拒绝
 };