summaryrefslogtreecommitdiffstats
path: root/models/issue.go
diff options
context:
space:
mode:
authorWenxuan Zhao <viz@linux.com>2019-10-16 19:06:28 -0700
committerLunny Xiao <xiaolunwen@gmail.com>2019-10-17 10:06:28 +0800
commitcf42cb0ae63c733f93b48a868873c8cd5a2b90bb (patch)
tree54abbd469f6655ea124820ca9821e05af39a9105 /models/issue.go
parentc43feedb96bd0ccf238bea59803ea412108b4000 (diff)
downloadgitea-cf42cb0ae63c733f93b48a868873c8cd5a2b90bb.tar.gz
gitea-cf42cb0ae63c733f93b48a868873c8cd5a2b90bb.zip
Allow externalID to be UUID (#8551)
Signed-off-by: Wenxuan Zhao <viz@linux.com>
Diffstat (limited to 'models/issue.go')
-rw-r--r--models/issue.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/models/issue.go b/models/issue.go
index 6503a0618f..c55e96168f 100644
--- a/models/issue.go
+++ b/models/issue.go
@@ -1936,7 +1936,7 @@ func (issue *Issue) ResolveMentionsByVisibility(ctx DBContext, doer *User, menti
}
// UpdateIssuesMigrationsByType updates all migrated repositories' issues from gitServiceType to replace originalAuthorID to posterID
-func UpdateIssuesMigrationsByType(gitServiceType structs.GitServiceType, originalAuthorID, posterID int64) error {
+func UpdateIssuesMigrationsByType(gitServiceType structs.GitServiceType, originalAuthorID string, posterID int64) error {
_, err := x.Table("issue").
Where("repo_id IN (SELECT id FROM repository WHERE original_service_type = ?)", gitServiceType).
And("original_author_id = ?", originalAuthorID).