diff --git a/backend/src/route/route.service.ts b/backend/src/route/route.service.ts index 3d1c2538cde0cc0e1b5e302daaafc54a189d88ef..42d58c471d4bef51b89f71581871870bc96fd220 100644 --- a/backend/src/route/route.service.ts +++ b/backend/src/route/route.service.ts @@ -1,7 +1,7 @@ import { Injectable } from '@nestjs/common'; import { InjectRepository } from '@nestjs/typeorm'; import { Route, RouteStatus } from './entities/route.entity'; -import { DataSource, MoreThan, Repository } from 'typeorm'; +import { DataSource, Repository } from 'typeorm'; import { User } from 'src/user/entities/user.entity'; import { Town } from 'src/town/entities/town.entity'; import { TravelPlaceService } from 'src/travel-place/travel-place.service'; @@ -150,6 +150,7 @@ export class RouteService { .leftJoinAndSelect('route.travelPlace', 'travelPlace') .leftJoinAndSelect('travelPlace.place', 'place') .leftJoinAndSelect('place.visited', 'visited') + .leftJoinAndSelect('place.town', 'town') .where('route.idRoute = :idRoute', { idRoute }) .getOne();