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

14 lines
315 B
Ruby
Raw Normal View History

# frozen_string_literal: true
module UserAssignments
class RemoveTeamUserAssignmentsJob < ApplicationJob
queue_as :high_priority
def perform(team_user_assignment)
ActiveRecord::Base.transaction do
RemoveTeamUserAssignmentsService.new(team_user_assignment).call
end
end
end
end