From 1f2e173a745da8e4b57f96b5561a3c10054d3b76 Mon Sep 17 00:00:00 2001 From: Unknwon Date: Sun, 24 Jul 2016 01:08:22 +0800 Subject: Refactor User.Id to User.ID --- routers/repo/webhook.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'routers/repo/webhook.go') diff --git a/routers/repo/webhook.go b/routers/repo/webhook.go index 22d5cfd2c6..715c6a4c72 100644 --- a/routers/repo/webhook.go +++ b/routers/repo/webhook.go @@ -63,7 +63,7 @@ func getOrgRepoCtx(ctx *context.Context) (*OrgRepoCtx, error) { if len(ctx.Org.OrgLink) > 0 { return &OrgRepoCtx{ - OrgID: ctx.Org.Organization.Id, + OrgID: ctx.Org.Organization.ID, Link: ctx.Org.OrgLink, NewTemplate: ORG_HOOK_NEW, }, nil @@ -224,7 +224,7 @@ func checkWebhook(ctx *context.Context) (*OrgRepoCtx, *models.Webhook) { if orCtx.RepoID > 0 { w, err = models.GetWebhookByRepoID(ctx.Repo.Repository.ID, ctx.ParamsInt64(":id")) } else { - w, err = models.GetWebhookByOrgID(ctx.Org.Organization.Id, ctx.ParamsInt64(":id")) + w, err = models.GetWebhookByOrgID(ctx.Org.Organization.ID, ctx.ParamsInt64(":id")) } if err != nil { if models.IsErrWebhookNotExist(err) { @@ -369,7 +369,7 @@ func TestWebhook(ctx *context.Context) { }, Sender: &api.PayloadUser{ UserName: ctx.User.Name, - ID: ctx.User.Id, + ID: ctx.User.ID, AvatarUrl: ctx.User.AvatarLink(), }, } -- cgit v1.2.3