Skip to content

Commit

Permalink
/api/export: Exclude archived subrecipients from treasury report
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Hyndman committed Dec 16, 2023
1 parent c2ad7f6 commit a512004
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/server/src/arpa_reporter/db/arpa-subrecipients.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ async function listRecipients(trns = knex) {
}

async function listRecipientsForReportingPeriod(periodId, trns = knex) {
return baseQuery(trns).where('reporting_period_id', periodId);
return baseQuery(trns).where('reporting_period_id', periodId).where('is_archived', false);
}

module.exports = {
Expand Down

0 comments on commit a512004

Please sign in to comment.