mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-18 23:31:05 +00:00
Merge pull request #306 from nuss-justin/dev
Fix double decrement of issue counter
This commit is contained in:
commit
3db84c8893
1 changed files with 0 additions and 12 deletions
|
@ -142,18 +142,6 @@ func updateIssuesCommit(userId, repoId int64, repoUserName, repoName string, com
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
issue.Repo, err = GetRepositoryById(issue.RepoId)
|
|
||||||
|
|
||||||
if err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
|
|
||||||
issue.Repo.NumClosedIssues++
|
|
||||||
|
|
||||||
if err = UpdateRepository(issue.Repo); err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
|
|
||||||
if err = ChangeMilestoneIssueStats(issue); err != nil {
|
if err = ChangeMilestoneIssueStats(issue); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue