We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a54f54a commit c1a3e63Copy full SHA for c1a3e63
app/jobs/invoice/mark_depositeds_job.rb
@@ -4,11 +4,9 @@ class Invoice
4
class MarkDepositedsJob < ApplicationJob
5
queue_as :default
6
def perform
7
- Invoice.where(aasm_state: :paid_v2).find_in_batches(batch_size: 100) do |batch|
8
- batch.each do |invoice|
9
- if invoice.canonical_transactions.count >= 2 || invoice.manually_marked_as_paid? || invoice.completed_deprecated?
10
- invoice.mark_deposited!
11
- end
+ Invoice.where(aasm_state: :paid_v2).find_each do |invoice|
+ if invoice.canonical_transactions.count >= 2 || invoice.manually_marked_as_paid? || invoice.completed_deprecated?
+ invoice.mark_deposited!
12
end
13
14
0 commit comments