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
|
@ -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,
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue