ryuichi-e 5 лет назад
Родитель
Сommit
00e99ccfeb
1 измененных файлов с 3 добавлено и 0 удалено
  1. 3 0
      src/server/routes/apiv3/bookmarks.js

+ 3 - 0
src/server/routes/apiv3/bookmarks.js

@@ -153,6 +153,9 @@ module.exports = (crowi) => {
     if (userId == null) {
     if (userId == null) {
       return res.apiv3Err('User id is not found or forbidden', 400);
       return res.apiv3Err('User id is not found or forbidden', 400);
     }
     }
+    if (limit == null) {
+      return res.apiv3Err('Could not catch page limit', 400);
+    }
     try {
     try {
       const paginationResult = await Bookmark.paginate(
       const paginationResult = await Bookmark.paginate(
         {
         {