Skip to content

Commit

Permalink
fix: query sql is_actually_sensitive
Browse files Browse the repository at this point in the history
  • Loading branch information
JingYiJun committed Jul 18, 2024
1 parent e6680b0 commit 534f584
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions danke/api/review.go
Original file line number Diff line number Diff line change
Expand Up @@ -479,9 +479,9 @@ func ListSensitiveReviews(c *fiber.Ctx) (err error) {
querySet = querySet.Where("is_sensitive = true")
} else {
if query.Open == true {
querySet = querySet.Where("is_sensitive = true and is_actual_sensitive IS NULL")
querySet = querySet.Where("is_sensitive = true and is_actually_sensitive IS NULL")
} else {
querySet = querySet.Where("is_sensitive = true and is_actual_sensitive IS NOT NULL")
querySet = querySet.Where("is_sensitive = true and is_actually_sensitive IS NOT NULL")
}
}

Expand Down

0 comments on commit 534f584

Please sign in to comment.