1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-07 11:07:20 +00:00

Update issue_index to finish migration (#16685) (#16687)

* update issue_index to finish migration

* One Func to RecalculateIssueIndexForRepo
This commit is contained in:
6543
2021-08-13 16:13:03 +02:00
committed by GitHub
parent d2d99a25b7
commit 86861ee135
2 changed files with 30 additions and 0 deletions

View File

@ -871,6 +871,11 @@ func (g *GiteaLocalUploader) Finish() error {
return ErrRepoNotCreated
}
// update issue_index
if err := models.RecalculateIssueIndexForRepo(g.repo.ID); err != nil {
return err
}
g.repo.Status = models.RepositoryReady
return models.UpdateRepositoryCols(g.repo, "status")
}