fix: 🐛 null host meilisearch
This commit is contained in:
parent
0a79b2646a
commit
47fa0c68d9
1 changed files with 4 additions and 0 deletions
|
@ -226,6 +226,10 @@ export default hasConfig
|
||||||
return null;
|
return null;
|
||||||
} else if (term.startsWith("domain:")) {
|
} else if (term.startsWith("domain:")) {
|
||||||
const domain = term.slice(7);
|
const domain = term.slice(7);
|
||||||
|
if (domain.length === 0 || domain === "local" || domain === config.hostname) {
|
||||||
|
constructedFilters.push("userHost NOT EXISTS");
|
||||||
|
return null;
|
||||||
|
}
|
||||||
constructedFilters.push(`userHost = ${domain}`);
|
constructedFilters.push(`userHost = ${domain}`);
|
||||||
return null;
|
return null;
|
||||||
} else if (term.startsWith("after:")) {
|
} else if (term.startsWith("after:")) {
|
||||||
|
|
Loading…
Reference in a new issue