summaryrefslogtreecommitdiff
path: root/lib/Travelynx/Controller/Traveling.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Travelynx/Controller/Traveling.pm')
-rwxr-xr-xlib/Travelynx/Controller/Traveling.pm15
1 files changed, 9 insertions, 6 deletions
diff --git a/lib/Travelynx/Controller/Traveling.pm b/lib/Travelynx/Controller/Traveling.pm
index 1d8a644..dca53db 100755
--- a/lib/Travelynx/Controller/Traveling.pm
+++ b/lib/Travelynx/Controller/Traveling.pm
@@ -60,15 +60,18 @@ sub user_status {
{
for my $candidate (
$self->get_user_travels(
- uid => $user->{id},
- limit => 10,
- verbose => 1,
- with_datetime => 1
+ uid => $user->{id},
+ limit => 10,
)
)
{
- if ( $candidate->{sched_departure}->epoch eq $ts ) {
- $journey = $candidate;
+ if ( $candidate->{sched_dep_ts} eq $ts ) {
+ $journey = $self->get_journey(
+ uid => $user->{id},
+ journey_id => $candidate->{id},
+ verbose => 1,
+ with_datetime => 1,
+ );
}
}
}