libertarian-party/partynest

View on GitHub
app/jobs/log_user_session_job.rb

Summary

Maintainability
A
0 mins
Test Coverage
# frozen_string_literal: true

class LogUserSessionJob < ApplicationJob
  queue_as :default

  def perform(user_id, user_agent)
    user = User.find user_id
    LogUserSession.call user: user, user_agent: user_agent
  end
end