Przeglądaj źródła

fix recentcreate bookmarks limit number

zahmis 5 lat temu
rodzic
commit
1e840b1003

+ 1 - 1
src/server/routes/apiv3/bookmarks.js

@@ -145,7 +145,7 @@ module.exports = (crowi) => {
    */
    */
   validator.myBookmarkList = [
   validator.myBookmarkList = [
     query('page').isInt({ min: 1 }),
     query('page').isInt({ min: 1 }),
-    query('limit').if(value => value != null).isInt({ max: 100 }).withMessage('You should set less than 100 or not to set limit.'),
+    query('limit').if(value => value != null).isInt({ max: 300 }).withMessage('You should set less than 300 or not to set limit.'),
   ];
   ];
 
 
   router.get('/:userId', accessTokenParser, loginRequired, validator.myBookmarkList, apiV3FormValidator, async(req, res) => {
   router.get('/:userId', accessTokenParser, loginRequired, validator.myBookmarkList, apiV3FormValidator, async(req, res) => {

+ 1 - 1
src/server/routes/apiv3/users.js

@@ -106,7 +106,7 @@ module.exports = (crowi) => {
   ];
   ];
 
 
   validator.recentCreatedByUser = [
   validator.recentCreatedByUser = [
-    query('limit').if(value => value != null).isInt({ max: 100 }).withMessage('You should set less than 100 or not to set limit.'),
+    query('limit').if(value => value != null).isInt({ max: 300 }).withMessage('You should set less than 300 or not to set limit.'),
   ];
   ];
 
 
   /**
   /**