fix: github uid collisions (#606)

This commit is contained in:
Echo 2025-11-04 14:15:01 -05:00 committed by GitHub
parent a7da824537
commit 2f64c71a57
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -431,7 +431,7 @@ class User < ApplicationRecord
other_users.find_each do |user|
Rails.logger.info "Clearing GitHub token for User ##{user.id} (GitHub UID: #{github_uid}) - linking to new account"
user.update!(github_access_token: nil)
user.update!(github_access_token: nil, github_uid: nil, github_username: nil)
end
# Update GitHub-specific fields