fix linter...
This commit is contained in:
@@ -280,8 +280,8 @@ export class SearchService {
|
|||||||
.leftJoinAndSelect('renote.user', 'renoteUser');
|
.leftJoinAndSelect('renote.user', 'renoteUser');
|
||||||
|
|
||||||
if (this.config.fulltextSearch?.provider === 'sqlPgroonga') {
|
if (this.config.fulltextSearch?.provider === 'sqlPgroonga') {
|
||||||
query.andWhere('note.text &@~ :q', {q});
|
query.andWhere('note.text &@~ :q', { q });
|
||||||
} else if (this.config.fulltextSearch?.provider === "sqlTsvector") {
|
} else if (this.config.fulltextSearch?.provider === 'sqlTsvector') {
|
||||||
query.andWhere('note.tsvector_embedding @@ websearch_to_tsquery(:q)', { q });
|
query.andWhere('note.tsvector_embedding @@ websearch_to_tsquery(:q)', { q });
|
||||||
} else {
|
} else {
|
||||||
query.andWhere('note.text ILIKE :q', { q: `%${ sqlLikeEscape(q) }%` });
|
query.andWhere('note.text ILIKE :q', { q: `%${ sqlLikeEscape(q) }%` });
|
||||||
|
|||||||
Reference in New Issue
Block a user