mirror of
https://gitlab.com/MrFry/mrfrys-node-server
synced 2025-04-01 20:24:18 +02:00
Exporting doSearch from classes, and removed unnecesary qdb param
This commit is contained in:
parent
14c9df4a62
commit
043e825302
5 changed files with 5 additions and 3 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -6,4 +6,5 @@ nextStatic/
|
|||
publicDirs/
|
||||
extraModules/
|
||||
nolog
|
||||
src/extraModules
|
||||
|
||||
|
|
|
@ -173,7 +173,6 @@ function processIncomingRequestUsingDb(
|
|||
type: 'work',
|
||||
data: {
|
||||
searchIn: [qdb.index],
|
||||
qdb: qdb.data,
|
||||
question: currentQuestion,
|
||||
subjName: recievedData.subj,
|
||||
searchTillMatchPercent: minMatchAmmountToAdd,
|
||||
|
|
|
@ -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
|
Loading…
Add table
Add a link
Reference in a new issue