Possible answers penalty fixes, logging imporvements, added tests

This commit is contained in:
mrfry 2022-03-23 16:10:16 +01:00
parent 39cb92308d
commit f5ad460e24
8 changed files with 396 additions and 48 deletions

View file

@ -204,7 +204,7 @@ function processIncomingRequestUsingDb(
const add = result.result.every((res: SearchResultQuestion) => {
return res.match < minMatchAmmountToAdd
})
if (add) {
if (add && !result.error) {
allQuestions.push(recievedQuestions[i])
}
})