Преглед изворни кода

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: [