fix show sql

This commit is contained in:
aichy126 2022-09-30 15:42:44 +08:00
parent 6da181a7bf
commit cd610f1540
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()