Skip to content

Commit

Permalink
fix(articles): fix bulk status update SQL
Browse files Browse the repository at this point in the history
  • Loading branch information
ncarlier committed May 14, 2019
1 parent 01623a9 commit 1039fc4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/db/postgres/article.go
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ func (pg *DB) MarkAllArticlesAsRead(uid uint, categoryID *uint) (int64, error) {
)

if categoryID != nil {
queryBuilder = queryBuilder.Where(sq.Eq{"category_id": categoryID})
queryBuilder = queryBuilder.Where(sq.Eq{"category_id": *categoryID})
}

query, args, _ := queryBuilder.ToSql()
Expand Down

0 comments on commit 1039fc4

Please sign in to comment.