Exporting doSearch from classes, and removed unnecesary qdb param

This commit is contained in:
mrfry 2021-03-11 17:23:11 +01:00
parent 14c9df4a62
commit 043e825302
5 changed files with 5 additions and 3 deletions

1
.gitignore vendored
View file

@ -6,4 +6,5 @@ nextStatic/
publicDirs/
extraModules/
nolog
src/extraModules

View file

@ -173,7 +173,6 @@ function processIncomingRequestUsingDb(
type: 'work',
data: {
searchIn: [qdb.index],
qdb: qdb.data,
question: currentQuestion,
subjName: recievedData.subj,
searchTillMatchPercent: minMatchAmmountToAdd,

View file

@ -564,6 +564,7 @@ if (!isMainThread) {
try {
qdbs.forEach((qdb) => {
// FIXME: === 0?
if (searchIn.length === 0 || searchIn.includes(qdb.index)) {
const res = doSearch(
qdb.data,
@ -639,4 +640,5 @@ export {
createQuestion,
addQuestion,
dataToString,
doSearch,
}

@ -1 +1 @@
Subproject commit a19c39c651bfbc57eb0ef2bb3371c58e1ea82cb0
Subproject commit 33e8b3a49e7ddbf5c52721c51e655dc28b6ff877

@ -1 +1 @@
Subproject commit 599ef00635c15d500dfcc1a9c226212000e74707
Subproject commit 49eae83f8194ab9585939b93119f82f7c0da16bb