mirror of https://gitee.com/answerdev/answer.git
Merge branch 'ai_work' into 'main'
fix show sql See merge request opensource/answer!39
This commit is contained in:
commit
2e0f31af4d
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue