Skip to content

armgit / TREK

Public Imported from GitHub
0

The most complete open-source travel planner: real-time collaboration, bookings, budgets, packing lists, journals, offline PWA, SSO and an AI-ready MCP server, with planet-wide place search and routing built in.

fix(places): type the tour mark on the single-place row

Mauricee6e270610ce0
diff --git a/server/src/db/repositories/Places.repository.ts b/server/src/db/repositories/Places.repository.ts
index b4b5d8090..62f9733c4 100644
--- a/server/src/db/repositories/Places.repository.ts
+++ b/server/src/db/repositories/Places.repository.ts
@@ -109,6 +109,8 @@ export interface PlaceWithTagsRow extends PlaceRow {
ratings: PlaceRatingRow[];
rating_avg: number | null;
rating_count: number;
+ /** The place's own id when it is a Tour, else null; the list read carries the same mark. */
+ tour_place_id: number | null;
}
export class PlacesRepository extends TrekRepository<Places> {