Skip to content

Commit

Permalink
Return active lap for /api/athlete/laps
Browse files Browse the repository at this point in the history
  • Loading branch information
mayfield committed Dec 3, 2024
1 parent f6377d2 commit 5805bb2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/webserver.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ async function _start({ip, port, rpcEventEmitters, statsProc}) {
}
function getAthleteLapsHandler(res, id) {
id = id === 'self' ? sp.athleteId : id === 'watching' ? sp.watching : Number(id);
const data = sp.getAthleteLaps(id);
const data = sp.getAthleteLaps(id, {active: true});
data ? res.json(data) : res.status(404).json(null);
}
function getAthleteSegmentsHandler(res, id) {
Expand Down

0 comments on commit 5805bb2

Please sign in to comment.