0
0
mirror of https://github.com/go-gitea/gitea.git synced 2026-04-05 22:54:55 +02:00
This commit is contained in:
Lunny Xiao 2026-03-18 17:02:09 -07:00
parent c508fb681b
commit 8565da9ca7
No known key found for this signature in database
GPG Key ID: C3B7C91B632F738A

View File

@ -101,7 +101,7 @@ func ListProjects(ctx *context.APIContext) {
apiProjects := convert.ToProjectList(ctx, projects)
ctx.SetLinkHeader(int(count), limit)
ctx.SetLinkHeader(count, limit)
ctx.SetTotalCountHeader(count)
ctx.JSON(http.StatusOK, apiProjects)
}
@ -398,7 +398,7 @@ func ListProjectColumns(ctx *context.APIContext) {
return
}
ctx.SetLinkHeader(int(total), listOptions.PageSize)
ctx.SetLinkHeader(total, listOptions.PageSize)
ctx.SetTotalCountHeader(total)
ctx.JSON(http.StatusOK, convert.ToProjectColumnList(ctx, columns))
}