diff options
author | Unknwon <u@gogs.io> | 2016-12-27 22:01:18 +0800 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2016-12-27 22:01:18 +0800 |
commit | 8059175a5c0363519ba28fb8fc5f9d494f6a209d (patch) | |
tree | f21775c9c1abbdad73b1d6d98984f5ac1780cba4 /routers/api/v1 | |
parent | f8fd084bd2c7c2a4d642daad59dceaf40686269e (diff) |
Fix dashboard issues/pull request counting
Diffstat (limited to 'routers/api/v1')
-rw-r--r-- | routers/api/v1/repo/repo.go | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/routers/api/v1/repo/repo.go b/routers/api/v1/repo/repo.go index cc75f5bf..e36f18b0 100644 --- a/routers/api/v1/repo/repo.go +++ b/routers/api/v1/repo/repo.go @@ -78,7 +78,12 @@ func Search(ctx *context.APIContext) { // https://github.com/gogits/go-gogs-client/wiki/Repositories#list-your-repositories func ListMyRepos(ctx *context.APIContext) { - ownRepos, err := models.GetUserRepositories(ctx.User.ID, true, 1, ctx.User.NumRepos) + ownRepos, err := models.GetUserRepositories(&models.UserRepoOptions{ + UserID: ctx.User.ID, + Private: true, + Page: 1, + PageSize: ctx.User.NumRepos, + }) if err != nil { ctx.Error(500, "GetRepositories", err) return |