Skip to content

Commit

Permalink
Remove unused var
Browse files Browse the repository at this point in the history
  • Loading branch information
mei23 committed May 23, 2021
1 parent ac2d756 commit f9035eb
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/server/api/endpoints/notes/search-by-tag.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,13 +103,11 @@ export default define(meta, async (ps, me) => {
if (ps.tag) {
query.andWhere(`'{"${safeForSql(ps.tag) ? normalizeTag(ps.tag) : 'aichan_kawaii'}"}' <@ note.tags`);
} else {
let i = 0;
query.andWhere(new Brackets(qb => {
for (const tags of ps.query!) {
qb.orWhere(new Brackets(qb => {
for (const tag of tags) {
qb.andWhere(`'{"${safeForSql(tag) ? normalizeTag(tag) : 'aichan_kawaii'}"}' <@ note.tags`);
i++;
}
}));
}
Expand Down

0 comments on commit f9035eb

Please sign in to comment.