Steven Fukase пре 4 година
родитељ
комит
c98de5dc00
1 измењених фајлова са 1 додато и 8 уклоњено
  1. 1 8
      packages/app/src/server/routes/apiv3/personal-setting.js

+ 1 - 8
packages/app/src/server/routes/apiv3/personal-setting.js

@@ -102,14 +102,7 @@ module.exports = (crowi) => {
       body('accountId').isString().not().isEmpty(),
     ],
     editorSettings: [
-      checkSchema({
-        textlintSettings: {
-          isTextlintEnabled: { isBoolean: true },
-          textlintRules: [
-            { name: { isString: true }, options: { isString: true }, isEnabled: { isBoolean: true } },
-          ],
-        },
-      }),
+      body('isTextlintEnabled').isBoolean(),
     ],
   };