Skip to content

Commit

Permalink
fix: ensure uploads are sorted when fetched from DB (#3134)
Browse files Browse the repository at this point in the history
Co-authored-by: Andrew Hyndman <ajhyndman@outlook.com.au>
  • Loading branch information
ajhyndman and Andrew Hyndman authored Jun 6, 2024
1 parent b5f628f commit 11de3b0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/server/src/arpa_reporter/db/uploads.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,8 @@ function usedForTreasuryExport(periodId, tenantId = useTenantId(), trns = knex)
.andOn('uploads.agency_id', '=', 'agency_max_val.agency_id')
.andOn('uploads.ec_code', '=', 'agency_max_val.ec_code')
.andOn('uploads.reporting_period_id', '=', 'agency_max_val.reporting_period_id');
});
})
.orderBy('created_at', 'asc');
}

/* getUploadSummaries() returns a knex promise containing an array of
Expand Down

0 comments on commit 11de3b0

Please sign in to comment.