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; }