From 534f584d17f67d48f0340126c048cf835c4e0a99 Mon Sep 17 00:00:00 2001 From: Ke Chen Date: Thu, 18 Jul 2024 23:26:08 +0800 Subject: [PATCH] fix: query sql is_actually_sensitive --- danke/api/review.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/danke/api/review.go b/danke/api/review.go index 602a67f..9128ff3 100644 --- a/danke/api/review.go +++ b/danke/api/review.go @@ -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") } }