Skip to content

Commit

Permalink
Include all approved claims for the current AY
Browse files Browse the repository at this point in the history
This slows down the report generation quite a bit, from 11s to 8
minutes, but it's a requirement from the Ops team. A job running once a
day for 8 minuts doesn' tseem too bad.
  • Loading branch information
rjlynch committed Jan 21, 2025
1 parent 5cce6b2 commit 61410d2
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion app/models/reports/duplicate_claims.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ def initialize
@claims = Claim
.includes(:eligibility)
.approved
.where.missing(:payments)
.where(academic_year: AcademicYear.current)
.select { |claim| Claim::MatchingAttributeFinder.new(claim).matching_claims.any? }
end
Expand Down

0 comments on commit 61410d2

Please sign in to comment.