Skip to content

Commit

Permalink
Fix AR logic that broke with the rails upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
Kagemaru committed Feb 16, 2024
1 parent 6fc6472 commit 38e3c5b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/domain/invoicing/small_invoice/invoice_sync.rb
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,9 @@ def sync_unpaid
def unpaid_invoices
Invoice
.joins(order: :status)
.where.not(status: 'paid', invoicing_key: nil, order_statuses: { closed: true })
.where.not(status: :paid)
.where.not(invoicing_key: nil)
.where.not(order_statuses: { closed: true })
end

def notify_sync_error(error, invoice)
Expand Down

0 comments on commit 38e3c5b

Please sign in to comment.