Shun Miyazawa 1 год назад
Родитель
Сommit
75a5ea8ca3

+ 3 - 0
apps/app/src/server/routes/apiv3/page/get-page-paths-with-descendant-count.ts

@@ -42,12 +42,15 @@ export const getPagePathsWithDescendantCountFactory: GetPagePathsWithDescendantC
     query('paths.*') // each item of paths
     query('paths.*') // each item of paths
       .isString()
       .isString()
       .withMessage('paths must be an array of strings'),
       .withMessage('paths must be an array of strings'),
+
     query('userGroups').optional().isArray().withMessage('userGroups must be an array of strings'),
     query('userGroups').optional().isArray().withMessage('userGroups must be an array of strings'),
     query('userGroups.*') // each item of userGroups
     query('userGroups.*') // each item of userGroups
       .isMongoId()
       .isMongoId()
       .withMessage('userGroups must be an array of strings'),
       .withMessage('userGroups must be an array of strings'),
+
     query('isIncludeEmpty').optional().isBoolean().withMessage('isIncludeEmpty must be a boolean'),
     query('isIncludeEmpty').optional().isBoolean().withMessage('isIncludeEmpty must be a boolean'),
     query('isIncludeEmpty').toBoolean(),
     query('isIncludeEmpty').toBoolean(),
+
     query('includeAnyoneWithTheLink').optional().isBoolean().withMessage('includeAnyoneWithTheLink must be a boolean'),
     query('includeAnyoneWithTheLink').optional().isBoolean().withMessage('includeAnyoneWithTheLink must be a boolean'),
     query('includeAnyoneWithTheLink').toBoolean(),
     query('includeAnyoneWithTheLink').toBoolean(),
   ];
   ];