Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 01ffb7a commit 0f9e3f3Copy full SHA for 0f9e3f3
src/logic/view.go
@@ -50,7 +50,7 @@ func (this *view) flush() {
50
session := MasterDB.Id(this.objid)
51
switch this.objtype {
52
case model.TypeTopic:
53
- session.Incr("view", this.num).Update(new(model.TopicEx))
+ session.Where("tid", this.objid).Incr("view", this.num).Update(new(model.TopicEx))
54
case model.TypeArticle:
55
session.Incr("viewnum", this.num).Update(new(model.Article))
56
case model.TypeResource:
0 commit comments