aboutsummaryrefslogtreecommitdiff
path: root/routers/api/v1/repo/label.go
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2016-12-22 19:58:30 -0500
committerUnknwon <u@gogs.io>2016-12-22 19:58:30 -0500
commit03f7f3ee67f9b4d828c2dbc938cbf9648bf53377 (patch)
tree9c3f9c4d91eec0df22a8f6fdbe703ada94efcaad /routers/api/v1/repo/label.go
parent6383bf748072279a101bf5ecdc0c56a0338f3046 (diff)
Some code renaming
Diffstat (limited to 'routers/api/v1/repo/label.go')
-rw-r--r--routers/api/v1/repo/label.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/routers/api/v1/repo/label.go b/routers/api/v1/repo/label.go
index 705206ce..981eaef1 100644
--- a/routers/api/v1/repo/label.go
+++ b/routers/api/v1/repo/label.go
@@ -26,7 +26,7 @@ func ListLabels(ctx *context.APIContext) {
}
func GetLabel(ctx *context.APIContext) {
- label, err := models.GetLabelInRepoByID(ctx.Repo.Repository.ID, ctx.ParamsInt64(":id"))
+ label, err := models.GetLabelOfRepoByID(ctx.Repo.Repository.ID, ctx.ParamsInt64(":id"))
if err != nil {
if models.IsErrLabelNotExist(err) {
ctx.Status(404)
@@ -63,7 +63,7 @@ func EditLabel(ctx *context.APIContext, form api.EditLabelOption) {
return
}
- label, err := models.GetLabelInRepoByID(ctx.Repo.Repository.ID, ctx.ParamsInt64(":id"))
+ label, err := models.GetLabelOfRepoByID(ctx.Repo.Repository.ID, ctx.ParamsInt64(":id"))
if err != nil {
if models.IsErrLabelNotExist(err) {
ctx.Status(404)