@@ -18,7 +18,6 @@ import (
18
18
"code.gitea.io/gitea/modules/base"
19
19
"code.gitea.io/gitea/modules/log"
20
20
"code.gitea.io/gitea/modules/references"
21
- "code.gitea.io/gitea/modules/structs"
22
21
api "code.gitea.io/gitea/modules/structs"
23
22
"code.gitea.io/gitea/modules/timeutil"
24
23
"code.gitea.io/gitea/modules/util"
@@ -2116,7 +2115,7 @@ func (issue *Issue) ResolveMentionsByVisibility(ctx context.Context, doer *User,
2116
2115
}
2117
2116
2118
2117
// UpdateIssuesMigrationsByType updates all migrated repositories' issues from gitServiceType to replace originalAuthorID to posterID
2119
- func UpdateIssuesMigrationsByType (gitServiceType structs .GitServiceType , originalAuthorID string , posterID int64 ) error {
2118
+ func UpdateIssuesMigrationsByType (gitServiceType api .GitServiceType , originalAuthorID string , posterID int64 ) error {
2120
2119
_ , err := db .GetEngine (db .DefaultContext ).Table ("issue" ).
2121
2120
Where ("repo_id IN (SELECT id FROM repository WHERE original_service_type = ?)" , gitServiceType ).
2122
2121
And ("original_author_id = ?" , originalAuthorID ).
@@ -2129,7 +2128,7 @@ func UpdateIssuesMigrationsByType(gitServiceType structs.GitServiceType, origina
2129
2128
}
2130
2129
2131
2130
// UpdateReactionsMigrationsByType updates all migrated repositories' reactions from gitServiceType to replace originalAuthorID to posterID
2132
- func UpdateReactionsMigrationsByType (gitServiceType structs .GitServiceType , originalAuthorID string , userID int64 ) error {
2131
+ func UpdateReactionsMigrationsByType (gitServiceType api .GitServiceType , originalAuthorID string , userID int64 ) error {
2133
2132
_ , err := db .GetEngine (db .DefaultContext ).Table ("reaction" ).
2134
2133
Where ("original_author_id = ?" , originalAuthorID ).
2135
2134
And (migratedIssueCond (gitServiceType )).
0 commit comments