Skip to content

Commit

Permalink
minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
cp-sneh-s committed Sep 30, 2024
1 parent 1b6fe62 commit 18e8ac2
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ class JourneyRepository @Inject constructor(
to_latitude = extractedLocation.latitude,
to_longitude = extractedLocation.longitude,
route_distance = distance.toDouble() + (lastKnownJourney.route_distance ?: 0.0),
route_duration = (extractedLocation.time - lastKnownJourney.created_at!!),
route_duration = (lastKnownJourney.update_at!! - lastKnownJourney.created_at!!),
routes = lastKnownJourney.routes + listOf(extractedLocation.toRoute()),
created_at = lastKnownJourney.created_at
)
Expand Down Expand Up @@ -278,7 +278,7 @@ class JourneyRepository @Inject constructor(
to_latitude = extractedLocation.latitude,
to_longitude = extractedLocation.longitude,
route_distance = distance.toDouble() + (lastKnownJourney.route_distance ?: 0.0),
route_duration = (extractedLocation.time - lastKnownJourney.created_at!!),
route_duration = (lastKnownJourney.update_at!! - lastKnownJourney.created_at!!),
routes = lastKnownJourney.routes + listOf(extractedLocation.toRoute()),
created_at = lastKnownJourney.created_at,
update_at = lastKnownJourney.update_at
Expand Down

0 comments on commit 18e8ac2

Please sign in to comment.