aboutsummaryrefslogtreecommitdiffhomepage
path: root/storage/entry_query_builder.go
diff options
context:
space:
mode:
Diffstat (limited to 'storage/entry_query_builder.go')
-rw-r--r--storage/entry_query_builder.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/storage/entry_query_builder.go b/storage/entry_query_builder.go
index 66f1d64..6f84987 100644
--- a/storage/entry_query_builder.go
+++ b/storage/entry_query_builder.go
@@ -103,7 +103,7 @@ func (e *EntryQueryBuilder) WithFeedID(feedID int64) *EntryQueryBuilder {
// WithCategoryID set the categoryID.
func (e *EntryQueryBuilder) WithCategoryID(categoryID int64) *EntryQueryBuilder {
- if categoryID != 0 {
+ if categoryID > 0 {
e.conditions = append(e.conditions, fmt.Sprintf("f.category_id = $%d", len(e.args)+1))
e.args = append(e.args, categoryID)
}