mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-12 12:16:06 +08:00
14 lines
315 B
Ruby
14 lines
315 B
Ruby
|
# frozen_string_literal: true
|
||
|
|
||
|
module UserAssignments
|
||
|
class UpdateTeamUserAssignmentJob < ApplicationJob
|
||
|
queue_as :high_priority
|
||
|
|
||
|
def perform(user, team, user_role)
|
||
|
ActiveRecord::Base.transaction do
|
||
|
UpdateTeamUserAssignmentService.new(user, team, user_role).call
|
||
|
end
|
||
|
end
|
||
|
end
|
||
|
end
|