소스 검색

forgot to delete

shinoka7 7 년 전
부모
커밋
e45752cb52
1개의 변경된 파일0개의 추가작업 그리고 19개의 파일을 삭제
  1. 0 19
      src/server/form/comment.js

+ 0 - 19
src/server/form/comment.js

@@ -1,19 +0,0 @@
-const { body } = require('express-validator/check');
-const mongoose = require('mongoose');
-
-const ObjectId = mongoose.Schema.Types.ObjectId;
-module.exports = [
-  body('commentForm.page_id').exists(),
-  body('commentForm.revision_id').exists(),
-  body('commentForm.comment').exists(),
-  body('commentForm.comment_position').isInt(),
-  body('commentForm.is_markdown').isBoolean(),
-  body('commentForm.replyTo').exists().custom((value) => {
-    if (value === '') {
-      return undefined;
-    }
-    return ObjectId(value);
-  }),
-
-  body('slackNotificationForm.isSlackEnabled').isBoolean().exists(),
-];