Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0f9e3f3

Browse files
committed
bugfix
1 parent 01ffb7a commit 0f9e3f3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/logic/view.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ func (this *view) flush() {
5050
session := MasterDB.Id(this.objid)
5151
switch this.objtype {
5252
case model.TypeTopic:
53-
session.Incr("view", this.num).Update(new(model.TopicEx))
53+
session.Where("tid", this.objid).Incr("view", this.num).Update(new(model.TopicEx))
5454
case model.TypeArticle:
5555
session.Incr("viewnum", this.num).Update(new(model.Article))
5656
case model.TypeResource:

0 commit comments

Comments
 (0)