aboutsummaryrefslogtreecommitdiffstats
path: root/routers/api/v1/org
diff options
context:
space:
mode:
author6543 <6543@obermui.de>2020-12-02 22:38:30 +0100
committerGitHub <noreply@github.com>2020-12-02 16:38:30 -0500
commit7ac8a770e1086a50d1fc0a194fe0d7060036fb30 (patch)
treef3c9e4e92bd158c8ef506ea46163c2dd95a57cfa /routers/api/v1/org
parent2b4a08e9621e052845062ecd71ebfd37453c0383 (diff)
downloadgitea-7ac8a770e1086a50d1fc0a194fe0d7060036fb30.tar.gz
gitea-7ac8a770e1086a50d1fc0a194fe0d7060036fb30.zip
Move Repo APIFormat to convert package (#13787)
* Move Repo APIFormat to convert package * tweek
Diffstat (limited to 'routers/api/v1/org')
-rw-r--r--routers/api/v1/org/team.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/api/v1/org/team.go b/routers/api/v1/org/team.go
index 443784fb8b..72387dcbf7 100644
--- a/routers/api/v1/org/team.go
+++ b/routers/api/v1/org/team.go
@@ -492,7 +492,7 @@ func GetTeamRepos(ctx *context.APIContext) {
ctx.Error(http.StatusInternalServerError, "GetTeamRepos", err)
return
}
- repos[i] = repo.APIFormat(access)
+ repos[i] = convert.ToRepo(repo, access)
}
ctx.JSON(http.StatusOK, repos)
}