Skip to content

Commit

Permalink
feat: show oldest unmatched captures first (Greenstand#924)
Browse files Browse the repository at this point in the history
  • Loading branch information
henriquemoreiraa authored Nov 8, 2022
1 parent 34ca5a2 commit c177bcf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/api/treeTrackerApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ export default {
.map((key) => (filter[key] ? `${key}=${filter[key]}` : ''))
.join('&');

const req = `${TREETRACKER_API}/captures?tree_associated=false&limit=${1}&offset=${
const req = `${TREETRACKER_API}/captures?order_by=captured_at&tree_associated=false&limit=${1}&offset=${
currentPage - 1
}&${where}`;

Expand Down

0 comments on commit c177bcf

Please sign in to comment.