Skip to content

Commit

Permalink
swapping asc and desc
Browse files Browse the repository at this point in the history
  • Loading branch information
tanneberger committed Oct 14, 2023
1 parent 8f8b9de commit e1fe30a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/routes/run.rs
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ pub async fn terminate_run(

let start_gps = match gps_points
.filter(trekkie_run.eq(path.0))
.order(timestamp.desc())
.order(timestamp.asc())
.limit(1)
.first::<GpsPoint>(&mut database_connection)
{
Expand All @@ -237,7 +237,7 @@ pub async fn terminate_run(

let end_gps = match gps_points
.filter(trekkie_run.eq(path.0))
.order(timestamp.asc())
.order(timestamp.desc())
.limit(1)
.first::<GpsPoint>(&mut database_connection)
{
Expand Down

0 comments on commit e1fe30a

Please sign in to comment.