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/
|
publicDirs/
|
||||||
extraModules/
|
extraModules/
|
||||||
nolog
|
nolog
|
||||||
|
src/extraModules
|
||||||
|
|
||||||
|
|
|
@ -173,7 +173,6 @@ function processIncomingRequestUsingDb(
|
||||||
type: 'work',
|
type: 'work',
|
||||||
data: {
|
data: {
|
||||||
searchIn: [qdb.index],
|
searchIn: [qdb.index],
|
||||||
qdb: qdb.data,
|
|
||||||
question: currentQuestion,
|
question: currentQuestion,
|
||||||
subjName: recievedData.subj,
|
subjName: recievedData.subj,
|
||||||
searchTillMatchPercent: minMatchAmmountToAdd,
|
searchTillMatchPercent: minMatchAmmountToAdd,
|
||||||
|
|
|
@ -564,6 +564,7 @@ if (!isMainThread) {
|
||||||
|
|
||||||
try {
|
try {
|
||||||
qdbs.forEach((qdb) => {
|
qdbs.forEach((qdb) => {
|
||||||
|
// FIXME: === 0?
|
||||||
if (searchIn.length === 0 || searchIn.includes(qdb.index)) {
|
if (searchIn.length === 0 || searchIn.includes(qdb.index)) {
|
||||||
const res = doSearch(
|
const res = doSearch(
|
||||||
qdb.data,
|
qdb.data,
|
||||||
|
@ -639,4 +640,5 @@ export {
|
||||||
createQuestion,
|
createQuestion,
|
||||||
addQuestion,
|
addQuestion,
|
||||||
dataToString,
|
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