fix: 🐛 null host meilisearch

This commit is contained in:
ThatOneCalculator 2023-08-08 16:07:06 -07:00
parent 0a79b2646a
commit 47fa0c68d9
No known key found for this signature in database
GPG Key ID: 8703CACD01000000

View File

@ -226,6 +226,10 @@ export default hasConfig
return null;
} else if (term.startsWith("domain:")) {
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}`);
return null;
} else if (term.startsWith("after:")) {