From cd610f15400efda839cfa944ecf4ed691861d43f Mon Sep 17 00:00:00 2001 From: aichy126 <work@aichy.com> Date: Fri, 30 Sep 2022 15:42:44 +0800 Subject: [PATCH] fix show sql --- internal/repo/question_repo.go | 1 - 1 file changed, 1 deletion(-) 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()