This commit is contained in:
taichanne30 2023-08-03 11:04:55 +09:00
parent 791a0b133e
commit 209bad9738
1 changed files with 3 additions and 3 deletions

View File

@ -175,7 +175,7 @@ export class SearchService {
if (opts.host) {
if (opts.host === '.') {
// TODO: Meilisearchが2023/05/07現在値がNULLかどうかのクエリが書けない
filter.qs.push({op: 'is null', k: 'userHost'})
filter.qs.push({ op: 'is null', k: 'userHost' });
} else {
filter.qs.push({ op: '=', k: 'userHost', v: opts.host });
}
@ -211,9 +211,9 @@ export class SearchService {
if (opts.host) {
if (opts.host === '.') {
query.andWhere('user.host IS NULL ')
query.andWhere('user.host IS NULL ');
} else {
query.andWhere('user.host = :host', { host: opts.host })
query.andWhere('user.host = :host', { host: opts.host });
}
}