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): keep the places repository at its size baseline

Maurice74864f254304
diff --git a/server/scripts/size-baseline.json b/server/scripts/size-baseline.json
index 77a57d404..593c2dd11 100644
--- a/server/scripts/size-baseline.json
+++ b/server/scripts/size-baseline.json
@@ -1,7 +1,7 @@
{
"scripts/db-call-graph.mjs": 1036,
"scripts/generate-entities.ts": 2259,
- "src/db/repositories/Places.repository.ts": 1438,
+ "src/db/repositories/Places.repository.ts": 1437,
"src/db/repositories/Reservations.repository.ts": 1604,
"src/db/repositories/Trips.repository.ts": 1121,
"src/db/repositories/Users.repository.ts": 1445,
diff --git a/server/src/db/repositories/Places.repository.ts b/server/src/db/repositories/Places.repository.ts
index 4a22e0502..e9fe5e761 100644
--- a/server/src/db/repositories/Places.repository.ts
+++ b/server/src/db/repositories/Places.repository.ts
@@ -348,10 +348,8 @@ export class PlacesRepository extends TrekRepository<Places> {
* builds. Every value here is already fully coerced by the caller (the
* `?? null` vs `|| null` split PL4's own legacy comment documents — 0 is
* legitimate for `lat`/`lng`/`price`/`fill_percent`, and
- * `duration_minutes` defaults to 60 — stays the service's decision, this
- * writes exactly what it is handed, `DaysRepository.createDay`'s split).
- * `em.insert()` returns the generated PK (R6's `lastInsertRowid`
- * replacement).
+ * `duration_minutes` defaults to 60 — stays the service's decision), but
+ * `lng` is stored on the real world (#2976). Returns the generated PK.
*/
async insertPlace(input: {
trip_id: number;