fix: Update associations when a label is updated (#3046)
This commit is contained in:
11
app/jobs/labels/update_job.rb
Normal file
11
app/jobs/labels/update_job.rb
Normal file
@@ -0,0 +1,11 @@
|
||||
class Labels::UpdateJob < ApplicationJob
|
||||
queue_as :default
|
||||
|
||||
def perform(new_label_title, old_label_title, account_id)
|
||||
Labels::UpdateService.new(
|
||||
new_label_title: new_label_title,
|
||||
old_label_title: old_label_title,
|
||||
account_id: account_id
|
||||
).perform
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user