mirror of
https://github.com/System-End/cdn.git
synced 2026-04-19 15:18:15 +00:00
brother!
This commit is contained in:
parent
7007b3f27a
commit
08c7840c3f
1 changed files with 2 additions and 1 deletions
|
|
@ -23,7 +23,8 @@ class User < ApplicationRecord
|
|||
slack_id = auth.extra.raw_info.slack_id
|
||||
raise "Missing HCA user ID from authentication" if hca_id.blank?
|
||||
|
||||
user = find_by(hca_id:) || find_by(slack_id:)
|
||||
user = find_by(hca_id:)
|
||||
user ||= find_by(slack_id:) if slack_id.present?
|
||||
|
||||
if user
|
||||
user.update(
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue