Parcourir la source

revert middleware

Steven Fukase il y a 4 ans
Parent
commit
c98de5dc00
1 fichiers modifiés avec 1 ajouts et 8 suppressions
  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(),
     ],
   };