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.

place-enrichment: the details lookup is a standalone cache fill

Mauricef4e524f3c3a6
diff --git a/server/scripts/tx-writes-baseline.json b/server/scripts/tx-writes-baseline.json
index 6a97aa93b..dcb76f5f1 100644
--- a/server/scripts/tx-writes-baseline.json
+++ b/server/scripts/tx-writes-baseline.json
@@ -57,7 +57,7 @@
"src/nest/notifications/transports/web-push.service.ts#WebPushService.settle": 2,
"src/nest/oidc/oidc.controller.ts#OidcController.callback": 2,
"src/nest/place-enrichment/place-enrichment.service.ts#PlaceEnrichmentService.collectPhotos": 5,
- "src/nest/place-enrichment/place-enrichment.service.ts#PlaceEnrichmentService.enrich": 5,
+ "src/nest/place-enrichment/place-enrichment.service.ts#PlaceEnrichmentService.enrich": 4,
"src/nest/place-enrichment/place-enrichment.service.ts#PlaceEnrichmentService.readCache": 2,
"src/nest/place-enrichment/place-enrichment.service.ts#PlaceEnrichmentService.storeCandidate": 2,
"src/nest/place-photos/place-photo-cache.job.ts#PlacePhotoCacheJob.onApplicationBootstrap": 2,
diff --git a/server/src/nest/place-enrichment/place-enrichment.service.ts b/server/src/nest/place-enrichment/place-enrichment.service.ts
index 38a7c541e..6bc9121c2 100644
--- a/server/src/nest/place-enrichment/place-enrichment.service.ts
+++ b/server/src/nest/place-enrichment/place-enrichment.service.ts
@@ -907,6 +907,9 @@ export class PlaceEnrichmentService {
* This is the same lookup the dialog already made when the user picked the
* search result, and it is row-cached, so in practice it is a cache read
* rather than a second provider call.
+ *
+ * @txStandalone the only write is the details row cache filling itself; a
+ * failure reads as no details and nothing else is written with it.
*/
private async readDetails(
userId: number,