From c177bcffcf3453a817701af0c76b14ca671a8d6f Mon Sep 17 00:00:00 2001 From: Henrique Moreira <98126579+henriquemoreiraa@users.noreply.github.com> Date: Tue, 8 Nov 2022 18:24:37 -0300 Subject: [PATCH] feat: show oldest unmatched captures first (#924) --- src/api/treeTrackerApi.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/treeTrackerApi.js b/src/api/treeTrackerApi.js index 578153cfc..a3509cde5 100644 --- a/src/api/treeTrackerApi.js +++ b/src/api/treeTrackerApi.js @@ -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}`;