From aa962deec037375a7cfae3b96094becdfe48e778 Mon Sep 17 00:00:00 2001 From: Ethan Koenig Date: Wed, 4 Oct 2017 21:43:04 -0700 Subject: Replace deprecated Id method with ID (#2655) --- models/update.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'models/update.go') diff --git a/models/update.go b/models/update.go index 474b989bbd..62d13ce209 100644 --- a/models/update.go +++ b/models/update.go @@ -90,14 +90,14 @@ func pushUpdateDeleteTag(repo *Repository, gitRepo *git.Repository, tagName stri return fmt.Errorf("GetRelease: %v", err) } if rel.IsTag { - if _, err = x.Id(rel.ID).Delete(new(Release)); err != nil { + if _, err = x.ID(rel.ID).Delete(new(Release)); err != nil { return fmt.Errorf("Delete: %v", err) } } else { rel.IsDraft = true rel.NumCommits = 0 rel.Sha1 = "" - if _, err = x.Id(rel.ID).AllCols().Update(rel); err != nil { + if _, err = x.ID(rel.ID).AllCols().Update(rel); err != nil { return fmt.Errorf("Update: %v", err) } } @@ -161,7 +161,7 @@ func pushUpdateAddTag(repo *Repository, gitRepo *git.Repository, tagName string) if rel.IsTag && author != nil { rel.PublisherID = author.ID } - if _, err = x.Id(rel.ID).AllCols().Update(rel); err != nil { + if _, err = x.ID(rel.ID).AllCols().Update(rel); err != nil { return fmt.Errorf("Update: %v", err) } } -- cgit v1.2.3