Merge branch 'ai_work' into 'main'

fix show sql

See merge request opensource/answer!39
This commit is contained in:
linkinstar 2022-09-30 07:59:36 +00:00
commit 2e0f31af4d
1 changed files with 0 additions and 1 deletions

View File

@ -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()