Tours: client tests for the new hooks and views, row chips fade at their end, admin user table aligned; strict and lint ratchets green

This commit is contained in:
Maurice
2026-10-15 23:08:46 +02:00
parent a0884685ef
commit 845979902c
25 changed files with 810 additions and 113 deletions
+2 -1
View File
@@ -354,7 +354,8 @@ export class ToursService {
this.toursRepo.findProvenance(tid, pid),
this.placesRepo.findInTrip(pid, tid),
]);
if (!source || !provenance || !place) throw new NotFoundException('Tour not found');
// A tour without a line has nothing to copy.
if (!source || !provenance || !place?.route_geometry) throw new NotFoundException('Tour not found');
const start = parseRouteGeometry(place.route_geometry)[0];
const id = await this.placesRepo.insertTourPlace({
trip_id: tid,