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 2ec85e0 commit 31c0a33Copy full SHA for 31c0a33
models/user.go
@@ -934,7 +934,7 @@ func deleteUser(e *xorm.Session, u *User) error {
934
if err = e.Table("star").Cols("star.repo_id").
935
Where("star.uid = ?", u.ID).Find(&starredRepoIDs); err != nil {
936
return fmt.Errorf("get all stars: %v", err)
937
- } else if _, err = e.Decr("num_watches").In("id", starredRepoIDs).Update(new(Repository)); err != nil {
+ } else if _, err = e.Decr("num_stars").In("id", starredRepoIDs).Update(new(Repository)); err != nil {
938
return fmt.Errorf("decrease repository num_stars: %v", err)
939
}
940
// ***** END: Star *****
0 commit comments