mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-02 19:39:49 +02:00
* update issue_index to finish migration * One Func to RecalculateIssueIndexForRepo
This commit is contained in:
2 files changed
+30
No files matched your search
@@ -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")
|
||||
}
|
||||
Reference in new issue
Block a user