Skip to content

Commit 8b22a12

Browse files
authored
Merge pull request #10639 from neinteractiveliterature/fix-user-setup-workflow
Fix crash bug in user setup workfow
2 parents 4f2a18a + 8f17a87 commit 8b22a12

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

app/services/setup_user_con_profile_service.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ def initialize(convention:, user:, controller: nil)
1616

1717
def inner_call
1818
user_con_profile =
19-
current_user.user_con_profiles.build(
20-
first_name: current_user.first_name,
21-
last_name: current_user.last_name,
19+
user.user_con_profiles.build(
20+
first_name: user.first_name,
21+
last_name: user.last_name,
2222
convention_id: convention.id,
2323
needs_update: true
2424
)
@@ -53,7 +53,7 @@ def profiles_by_recency
5353
return nil unless convention.organization_id
5454

5555
@profiles_by_recency ||=
56-
current_user
56+
user
5757
.user_con_profiles
5858
.joins(:convention)
5959
.where(conventions: { organization_id: convention.organization_id })

0 commit comments

Comments
 (0)