lint
This commit is contained in:
parent
791a0b133e
commit
209bad9738
|
@ -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 });
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue