Skip to content

Commit

Permalink
fix: broken data digest
Browse files Browse the repository at this point in the history
  • Loading branch information
diegosteiner committed May 15, 2024
1 parent 168efae commit 1f42c18
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions app/models/invoice_part.rb
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,7 @@ class Filter < ApplicationFilter
filter :homes do |invoice_parts|
relevant_homes = Array.wrap(homes).compact_blank
if relevant_homes.present?
invoice_parts.joins(invoice: :booking)
.where(invoice: { bookings: { home_id: relevant_homes } })
invoice_parts.joins(invoice: :booking).where(invoices: { bookings: { home_id: relevant_homes } })
end
end

Expand Down

0 comments on commit 1f42c18

Please sign in to comment.