From 909311328e21a9497eb5a603a7d00d90f0178eac Mon Sep 17 00:00:00 2001 From: Book Pauk Date: Sat, 20 Aug 2022 21:39:58 +0700 Subject: [PATCH] =?UTF-8?q?=D0=9F=D0=BE=D0=BF=D1=80=D0=B0=D0=B2=D0=BA?= =?UTF-8?q?=D0=B8=20=D0=BB=D0=B8=D0=BC=D0=B8=D1=82=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/components/Search/Search.vue | 2 +- server/core/DbSearcher.js | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/client/components/Search/Search.vue b/client/components/Search/Search.vue index 49f738a..f28b0ce 100644 --- a/client/components/Search/Search.vue +++ b/client/components/Search/Search.vue @@ -158,7 +158,7 @@ class Search { title = ''; genre = ''; lang = ''; - limit = 100; + limit = 50; //stuff queryFound = -1; diff --git a/server/core/DbSearcher.js b/server/core/DbSearcher.js index 7ba5e86..46f8bea 100644 --- a/server/core/DbSearcher.js +++ b/server/core/DbSearcher.js @@ -239,7 +239,8 @@ class DbSearcher { const authorIds = await this.getAuthorIds(query); const totalFound = authorIds.length; - const limit = (query.limit ? query.limit : 1000); + let limit = (query.limit ? query.limit : 100); + limit = (limit > 1000 ? 1000 : limit); const offset = (query.offset ? query.offset : 0); //выборка найденных авторов