Skip to content

A Q&A platform software for teams at any scales. Whether it's a community forum, help center, or knowledge management platform, you can always count on Apache Answer.

fix show sql

aichy1261dbd1924117f
diff --git a/internal/repo/question_repo.go b/internal/repo/question_repo.go
index 9514d6b7..13e48be9 100644
--- a/internal/repo/question_repo.go
+++ b/internal/repo/question_repo.go
@@ -66,7 +66,6 @@ func (qr *questionRepo) UpdateQuestion(ctx context.Context, question *entity.Que
func (qr *questionRepo) UpdatePvCount(ctx context.Context, questionId string) (err error) {
question := &entity.Question{}
- qr.data.DB.ShowSQL()
_, err = qr.data.DB.Where("id =?", questionId).Incr("view_count", 1).Update(question)
if err != nil {
return errors.InternalServer(reason.DatabaseError).WithError(err).WithStack()