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(transit): mark the plan fallback's quota counts as independent writes

Maurice324ee6915176
diff --git a/server/src/nest/transit/transit.service.ts b/server/src/nest/transit/transit.service.ts
index 03b1c1c35..acfbc31e4 100644
--- a/server/src/nest/transit/transit.service.ts
+++ b/server/src/nest/transit/transit.service.ts
@@ -223,7 +223,13 @@ export class TransitService {
return { ...data, provider };
}
- /** Route search between two coordinates. Returns compact itineraries for the picker. */
+ /**
+ * Route search between two coordinates. Returns compact itineraries for the picker.
+ *
+ * @txIndependent the only writes are Google's daily call counter, one after each
+ * upstream request; each count stands on its own and cannot share a transaction
+ * with the HTTP call it records.
+ */
async plan(
q: PlanQuery,
language?: string,