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 8278ac9 commit e7d605cCopy full SHA for e7d605c
models/attachment.go
@@ -50,7 +50,7 @@ func (a *Attachment) IncreaseDownloadCount() error {
50
sess := x.NewSession()
51
defer sessionRelease(sess)
52
53
- // Update repository count.
+ // Update download count.
54
if _, err := sess.Exec("UPDATE `attachment` SET download_count=download_count+1 WHERE id=?", a.ID); err != nil {
55
return fmt.Errorf("increase attachment count: %v", err)
56
}
0 commit comments