forked from Gitlink/gitea-1156
fix: tag count error
This commit is contained in:
parent
d6e2682a08
commit
364a2c1366
|
@ -301,7 +301,9 @@ func BranchTagCount(ctx *context.APIContext) {
|
|||
// "200":
|
||||
// "$ref": "#/responses/RepoBranchAndTagCount"
|
||||
|
||||
tagsCount, err := ctx.Repo.GitRepo.GetTagCount() // tags info
|
||||
tagsCount, err := models.GetReleaseCountByRepoID(ctx.Repo.Repository.ID, models.FindReleasesOptions{
|
||||
IncludeTags: true,
|
||||
})
|
||||
if err != nil {
|
||||
ctx.Error(http.StatusInternalServerError, "GetTagCount", err)
|
||||
return
|
||||
|
|
Loading…
Reference in New Issue