mirror of https://gitee.com/answerdev/answer.git
fix show sql
This commit is contained in:
parent
6da181a7bf
commit
cd610f1540
|
@ -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