From a3e2de54e49e9cab9e74fb7c712fcf1c8e1d951f Mon Sep 17 00:00:00 2001 From: 24c02 <163450896+24c02@users.noreply.github.com> Date: Fri, 30 Jan 2026 16:24:43 -0500 Subject: [PATCH] UGH --- app/models/user.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/user.rb b/app/models/user.rb index 7ab3469..d4b484f 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -21,7 +21,7 @@ class User < ApplicationRecord def self.find_or_create_from_omniauth(auth) hca_id = auth.uid - slack_id = auth.extra.raw_info.slack_id + slack_id = auth.extra.raw_info.dig("identity", "slack_id") raise "Missing HCA user ID from authentication" if hca_id.blank? user = find_by(hca_id:)