Browse Source

Поправлен баг

Book Pauk 2 years ago
parent
commit
8a6852c4ae
1 changed files with 3 additions and 2 deletions
  1. 3 2
      server/core/DbSearcher.js

+ 3 - 2
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;
                 };