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 --- models/repo_collaboration.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'models/repo_collaboration.go') diff --git a/models/repo_collaboration.go b/models/repo_collaboration.go index 3da5cf5a02..2a530f8752 100644 --- a/models/repo_collaboration.go +++ b/models/repo_collaboration.go @@ -33,7 +33,7 @@ func (c *Collaboration) ModeI18nKey() string { func (repo *Repository) AddCollaborator(u *User) error { collaboration := &Collaboration{ RepoID: repo.ID, - UserID: u.Id, + UserID: u.ID, } has, err := x.Get(collaboration) -- cgit v1.2.3