Skip to content

Commit

Permalink
Do not run within transaction
Browse files Browse the repository at this point in the history
  • Loading branch information
smolnar committed May 4, 2024
1 parent c0bacff commit ceabe8a
Showing 1 changed file with 12 additions and 14 deletions.
26 changes: 12 additions & 14 deletions app/reconcilers/decree_reconciler.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,18 @@ def initialize(decree, mapper:)
end

def reconcile!
decree.transaction do
reconcile_attributes
reconcile_court
reconcile_legislation_areas
reconcile_legislation_subareas
reconcile_proceeding
reconcile_judges
reconcile_natures
reconcile_legislations
reconcile_pages

decree.save!
decree.touch
end
reconcile_attributes
reconcile_court
reconcile_legislation_areas
reconcile_legislation_subareas
reconcile_proceeding
reconcile_judges
reconcile_natures
reconcile_legislations
reconcile_pages

decree.save!
decree.touch
end

def reconcile_attributes
Expand Down

0 comments on commit ceabe8a

Please sign in to comment.