Update packages/backend/src/core/SearchService.ts

This commit is contained in:
syuilo 2023-08-20 13:38:38 +09:00 committed by GitHub
parent 76d71da42b
commit 783f467321
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -210,7 +210,7 @@ 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 });
}