aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--services/migrations/gitea_uploader.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/services/migrations/gitea_uploader.go b/services/migrations/gitea_uploader.go
index f43c7378b8..20370d99f9 100644
--- a/services/migrations/gitea_uploader.go
+++ b/services/migrations/gitea_uploader.go
@@ -468,7 +468,9 @@ func (g *GiteaLocalUploader) CreateComments(comments ...*base.Comment) error {
switch cm.Type {
case issues_model.CommentTypeAssignees:
- cm.AssigneeID = comment.Meta["AssigneeID"].(int64)
+ if assigneeID, ok := comment.Meta["AssigneeID"].(int); ok {
+ cm.AssigneeID = int64(assigneeID)
+ }
if comment.Meta["RemovedAssigneeID"] != nil {
cm.RemovedAssignee = true
}