Skip to content

Commit

Permalink
do not show empty tags
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexSciFier committed Jun 14, 2024
1 parent 71901bb commit 2bfe8be
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions server/db/sqlite/stores/tags.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export default class TagsStore {
}

if (onlyActive) {
selectQuery += ` RIGHT JOIN bookmarksTags ON tags.id = bookmarksTags.tagId`;
selectQuery += ` INNER JOIN bookmarksTags ON tags.id = bookmarksTags.tagId`;
}

if (conditions.length > 0) {
Expand All @@ -55,7 +55,6 @@ export default class TagsStore {
selectQuery += ` GROUP BY tags.id
ORDER BY tags.name`;

console.log(selectQuery);
return this.db.prepare(selectQuery).all(selectParams);
}

Expand Down

0 comments on commit 2bfe8be

Please sign in to comment.