Commit fc59d357 authored by Douglas Barbosa Alexandre's avatar Douglas Barbosa Alexandre
Browse files

Skip update query if label have the same id on Labels::TransferService

parent 0ca239fcc880
......@@ -19,6 +19,8 @@ def execute
labels_to_transfer.find_each do |label|
new_label_id = find_or_create_label!(label)
next if new_label_id == label.id
LabelLink.where(label_id: label.id).update_all(label_id: new_label_id)
end
end
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment