Shun Miyazawa преди 1 година
родител
ревизия
75a5ea8ca3
променени са 1 файла, в които са добавени 3 реда и са изтрити 0 реда
  1. 3 0
      apps/app/src/server/routes/apiv3/page/get-page-paths-with-descendant-count.ts

+ 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
       .isString()
       .withMessage('paths must be an array of strings'),
+
     query('userGroups').optional().isArray().withMessage('userGroups must be an array of strings'),
     query('userGroups.*') // each item of userGroups
       .isMongoId()
       .withMessage('userGroups must be an array of strings'),
+
     query('isIncludeEmpty').optional().isBoolean().withMessage('isIncludeEmpty must be a boolean'),
     query('isIncludeEmpty').toBoolean(),
+
     query('includeAnyoneWithTheLink').optional().isBoolean().withMessage('includeAnyoneWithTheLink must be a boolean'),
     query('includeAnyoneWithTheLink').toBoolean(),
   ];