Fix reference errors
This commit is contained in:
parent
ad5f9492fb
commit
3477092542
1 changed files with 4 additions and 2 deletions
|
@ -15,14 +15,16 @@ class ProcessReferencesService < BaseService
|
||||||
|
|
||||||
old_references
|
old_references
|
||||||
|
|
||||||
|
return unless added_references.size.positive? || removed_references.size.positive?
|
||||||
|
|
||||||
StatusReference.transaction do
|
StatusReference.transaction do
|
||||||
remove_old_references
|
remove_old_references
|
||||||
add_references
|
add_references
|
||||||
|
|
||||||
@status.save! if @save_records
|
@status.save! if @save_records
|
||||||
end
|
|
||||||
|
|
||||||
create_notifications!
|
create_notifications!
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue