summaryrefslogtreecommitdiff
path: root/lib/Travelynx.pm
diff options
context:
space:
mode:
authorBirte Kristina Friesel <derf@finalrewind.org>2024-06-15 22:03:36 +0200
committerBirte Kristina Friesel <derf@finalrewind.org>2024-06-15 22:03:36 +0200
commitd7fd521899f8e5ddd932d1ee9046f069b3187572 (patch)
tree10d81e8f3a65bbd0270ecb85d0b7b04bd546e657 /lib/Travelynx.pm
parent7466d252fb2a1ff6b0ecdce79f875579ad647516 (diff)
InTransit: allow setting data in add call
Diffstat (limited to 'lib/Travelynx.pm')
-rwxr-xr-xlib/Travelynx.pm6
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/Travelynx.pm b/lib/Travelynx.pm
index e8d3902..7688136 100755
--- a/lib/Travelynx.pm
+++ b/lib/Travelynx.pm
@@ -573,6 +573,7 @@ sub startup {
db => $db,
journey => $journey,
stop => $found,
+ data => { trip_id => $journey->id }
);
};
if ($@) {
@@ -581,11 +582,6 @@ sub startup {
$promise->reject( 'INSERT failed: ' . $@ );
return;
}
- $self->in_transit->update_data(
- uid => $uid,
- db => $db,
- data => { trip_id => $journey->id }
- );
my $polyline;
if ( $journey->polyline ) {