mirror of
https://gitlab.com/MrFry/mrfrys-node-server
synced 2025-04-01 20:24:18 +02:00
Added worker to search for stuff in db (ask) #10
This commit is contained in:
parent
ecd3a9805f
commit
f1f7b86fea
3 changed files with 48 additions and 46 deletions
|
@ -299,7 +299,6 @@ function searchQuestion(subj, question, questionData, subjName) {
|
|||
}
|
||||
})
|
||||
|
||||
// TODO: check if sorting is correct!
|
||||
result = result.sort((q1, q2) => {
|
||||
return q1.match < q2.match
|
||||
})
|
||||
|
@ -413,7 +412,6 @@ function searchData(data, question, subjName, questionData) {
|
|||
}
|
||||
}
|
||||
|
||||
// TODO: check if sorting is correct!
|
||||
result = result.sort((q1, q2) => {
|
||||
return q1.match < q2.match
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue