From cb17cb8d909a4d0d58b46c3e58dff7782fb39c5a Mon Sep 17 00:00:00 2001 From: fbachus Date: Thu, 30 Jul 2026 19:03:29 +0200 Subject: [PATCH] fix(transport_helper): make sure journeys contain start+endstation --- lib/transport_helper.dart | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/transport_helper.dart b/lib/transport_helper.dart index d1548ba..364eecf 100644 --- a/lib/transport_helper.dart +++ b/lib/transport_helper.dart @@ -145,6 +145,7 @@ class Journey { endStation = null; duration = Duration(minutes: 0); } + _dbUpdate(); } void addSegment(Segment newSeg) { @@ -224,6 +225,7 @@ class Journey { static Future fromMapWrapper(Map journeyMap) async { Future> segs = _dbGetJourneySegments(journeyMap["id"] as int); Journey res = Journey.fromMap(journeyMap, await segs); + res.sync(); return res; }