소스 검색

Exclude 3 from adminPreferredIndentSize

Tatsunori Uchino 5 년 전
부모
커밋
f83044e009
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/server/routes/apiv3/markdown-setting.js

+ 1 - 1
src/server/routes/apiv3/markdown-setting.js

@@ -16,7 +16,7 @@ const validator = {
     body('isEnabledLinebreaksInComments').isBoolean(),
   ],
   indent: [
-    body('adminPreferredIndentSize').isInt({ max: 4, min: 2 }),
+    body('adminPreferredIndentSize').isIn([2, 4]),
     body('isIndentSizeForced').isBoolean(),
   ],
   presentationSetting: [