From 84a958fe1210375814976b5f4525f18b46bd504a Mon Sep 17 00:00:00 2001 From: Manuel Kasper Date: Sun, 9 Mar 2025 18:27:35 +0100 Subject: [PATCH] Activations seem to be loading faster from the SOTA DB in descending order --- activations.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/activations.js b/activations.js index ec8d6ae..03cb701 100644 --- a/activations.js +++ b/activations.js @@ -29,7 +29,7 @@ router.get('/:callsign', (req, res) => { return; } - axios.get('https://api-db2.sota.org.uk/logs/activator/' + activator.userId + '/99999/0') + axios.get('https://api-db2.sota.org.uk/logs/activator/' + activator.userId + '/99999/1') .then(response => { let activations = response.data.map(activation => { return { @@ -45,7 +45,7 @@ router.get('/:callsign', (req, res) => { code: activation.SummitCode } } - }); + }).reverse(); summits.lookupSummits(activations) .then(activationsWithSummits => { res.json(activationsWithSummits);