attempt 2 at fixing slack signing (#809)

This commit is contained in:
Echo 2026-01-19 12:49:47 -05:00 committed by GitHub
parent aef3b03837
commit 742420caff
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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