Steven Fukase 4 лет назад
Родитель
Сommit
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(),
       body('accountId').isString().not().isEmpty(),
     ],
     ],
     editorSettings: [
     editorSettings: [
-      checkSchema({
-        textlintSettings: {
-          isTextlintEnabled: { isBoolean: true },
-          textlintRules: [
-            { name: { isString: true }, options: { isString: true }, isEnabled: { isBoolean: true } },
-          ],
-        },
-      }),
+      body('isTextlintEnabled').isBoolean(),
     ],
     ],
   };
   };