Class: MHV::AuditLogoutJob
- Inherits:
-
Object
- Object
- MHV::AuditLogoutJob
- Includes:
- Sidekiq::Job
- Defined in:
- app/sidekiq/mhv/audit_logout_job.rb
Instance Method Summary collapse
Instance Method Details
#perform(uuid, mhv_correlation_id) ⇒ Object
9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'app/sidekiq/mhv/audit_logout_job.rb', line 9 def perform(uuid, mhv_correlation_id) MHVLogging::Client.new(session: { user_id: mhv_correlation_id }) .authenticate .auditlogout # Update the user object with nil to indicate not logged in user = User.find(uuid) if user user.mhv_last_signed_in = nil user.save end end |