Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Fix] Account Linking UpdateMigrationsByType #31428

Merged
merged 8 commits into from
Jun 20, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
update comment
Sumit189 committed Jun 20, 2024
commit c949e039728857353b09a8d1aed5711bec239c76
2 changes: 1 addition & 1 deletion services/externalaccount/user.go
Original file line number Diff line number Diff line change
@@ -83,7 +83,7 @@ func UpdateExternalUser(ctx context.Context, user *user_model.User, gothUser got

// UpdateMigrationsByType updates all migrated repositories' posterid from gitServiceType to replace originalAuthorID to posterID
func UpdateMigrationsByType(ctx context.Context, tp structs.GitServiceType, externalUserID string, userID int64) error {
// Dont update if externalUserID is not a number
// Skip update if externalUserID is not a valid numeric ID or exceeds int64
if _, err := strconv.ParseInt(externalUserID, 10, 64); err != nil {
return nil
}