mirror of
https://github.com/System-End/hackatime.git
synced 2026-04-19 22:15:14 +00:00
fix: github uid collisions (#606)
This commit is contained in:
parent
a7da824537
commit
2f64c71a57
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue