core: fix query-transformer tests

This commit is contained in:
Abdullah Atta
2025-05-06 13:11:01 +05:00
parent 30e4f55218
commit 173caf41d0
3 changed files with 62 additions and 73 deletions

View File

@@ -106,8 +106,10 @@ export default class Lookup {
})
.then((r) => r.map((r) => r.id));
const smallTokens = tokens.filter(
(token) => token.length < 3 && token !== "OR"
const smallTokens = Array.from(
new Set(
tokens.filter((token) => token.length < 3 && token !== "OR")
).values()
);
if (smallTokens.length === 0) return resultsA;