瀏覽代碼

clean code

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(),
   ];