Skip to content

Commit

Permalink
Enqueue fetch (enrolled) clubs job when user signs in
Browse files Browse the repository at this point in the history
  • Loading branch information
TomNaessens committed Jan 31, 2024
1 parent f43a5b8 commit 1a8c816
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions app/models/user.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,13 @@ def cas_extra_attributes=(extra_attributes)
self.cas_uid = value
end
end

self.save!

if self.cas_ugentStudentID # rubocop:disable Style/GuardClause
enqueue_fetch_club
enqueue_fetch_enrolled_clubs
end
end

# return Givenname + surname or username if these don't exist
Expand Down

0 comments on commit 1a8c816

Please sign in to comment.