diff --git a/app/models/family/auto_transfer_matchable.rb b/app/models/family/auto_transfer_matchable.rb index 28d06f43a..2f7160292 100644 --- a/app/models/family/auto_transfer_matchable.rb +++ b/app/models/family/auto_transfer_matchable.rb @@ -53,8 +53,6 @@ module Family::AutoTransferMatchable # Track which transactions we've already matched to avoid duplicates used_transaction_ids = Set.new - candidates = [] - Transfer.transaction do candidates_scope.each do |match| next if used_transaction_ids.include?(match.inflow_transaction_id) ||