mirror of
https://github.com/System-End/hackatime.git
synced 2026-04-19 22:15:14 +00:00
attempt 2 at fixing slack signing (#809)
This commit is contained in:
parent
aef3b03837
commit
742420caff
1 changed files with 1 additions and 0 deletions
|
|
@ -492,6 +492,7 @@ class User < ApplicationRecord
|
|||
|
||||
user.email_addresses.source_slack.where.not(email: email).update_all(source: :signing_in)
|
||||
email_address.source = :slack
|
||||
email_address.save! if email_address.persisted?
|
||||
|
||||
user.slack_uid = data.dig("authed_user", "id")
|
||||
user.slack_username = profile["display_name_normalized"].presence
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue