scinote-web/app/jobs/user_assignments/update_team_user_assignments_job.rb

14 lines
317 B
Ruby
Raw Normal View History

# frozen_string_literal: true
module UserAssignments
class UpdateTeamUserAssignmentsJob < ApplicationJob
queue_as :high_priority
def perform(user, team, user_role)
ActiveRecord::Base.transaction do
UpdateTeamUserAssignmentsService.new(user, team, user_role).call
end
end
end
end