Skip to content

Commit

Permalink
Bump level on bootcamp data creation
Browse files Browse the repository at this point in the history
  • Loading branch information
iHiD committed Jan 14, 2025
1 parent 2dab2d4 commit 0c0d614
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion app/controllers/bootcamp/base_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,10 @@ def redirect_unless_attendee!
end

def setup_bootcamp_data!
current_user.bootcamp_data || current_user.create_bootcamp_data!
return if current_user.bootcamp_data

current_user.create_bootcamp_data!
Bootcamp::UpdateUserLevel.(current_user)
end

def use_project
Expand Down

0 comments on commit 0c0d614

Please sign in to comment.