mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-10-23 07:26:30 +00:00
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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user