kopia lustrzana https://github.com/manuelkasper/sotlas-api
Activations seem to be loading faster from the SOTA DB in descending order
rodzic
f583a0d75d
commit
84a958fe12
|
@ -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);
|
||||
|
|
Ładowanie…
Reference in New Issue