From 8a6852c4aed7593a06d9cae75f7fb5823472aee6 Mon Sep 17 00:00:00 2001 From: Book Pauk Date: Thu, 27 Oct 2022 17:24:47 +0700 Subject: [PATCH] =?UTF-8?q?=D0=9F=D0=BE=D0=BF=D1=80=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=20=D0=B1=D0=B0=D0=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/core/DbSearcher.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/server/core/DbSearcher.js b/server/core/DbSearcher.js index 1995cc7..39bdc6f 100644 --- a/server/core/DbSearcher.js +++ b/server/core/DbSearcher.js @@ -413,7 +413,7 @@ class DbSearcher { `; filter += ` const genres = book.genre.split(','); - let found = false; + found = false; for (const g of genres) { if (checkGenre(g)) { found = true; @@ -452,7 +452,7 @@ class DbSearcher { filter += ` const author = splitAuthor(book.author); - let found = false; + found = false; for (const a of author) { if (checkAuthor(a)) { found = true; @@ -474,6 +474,7 @@ class DbSearcher { ${closures} const filterBook = (book) => { + let found = false; ${filter} return true; };