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.

chore(dawarich): keep the stay naming helpers module-private

Maurice9890f31d109d
diff --git a/server/src/nest/integrations/dawarich.client.ts b/server/src/nest/integrations/dawarich.client.ts
index f1c6c58da..ccbf3b9e4 100644
--- a/server/src/nest/integrations/dawarich.client.ts
+++ b/server/src/nest/integrations/dawarich.client.ts
@@ -48,7 +48,7 @@ export const TRACKS_PAGE_SIZE = 200;
/** Points cap at 10000 upstream. A day of tracking is a few thousand. */
export const POINTS_PAGE_SIZE = 5000;
/** Points read to name one stay. Enough to get past a few not yet geocoded. */
-export const GEOCODED_POINTS_PAGE_SIZE = 50;
+const GEOCODED_POINTS_PAGE_SIZE = 50;
/**
* How many pages one call will walk before giving up and saying so.
diff --git a/server/src/nest/integrations/dawarich.helpers.ts b/server/src/nest/integrations/dawarich.helpers.ts
index 2c1dde500..383d957ed 100644
--- a/server/src/nest/integrations/dawarich.helpers.ts
+++ b/server/src/nest/integrations/dawarich.helpers.ts
@@ -159,7 +159,7 @@ function realName(value: unknown): string | null {
* The best name the visit itself carries: its own, its place's, then the
* place's address. Null when there is none of them.
*/
-export function visitSourceName(visit: DawarichVisitRaw): string | null {
+function visitSourceName(visit: DawarichVisitRaw): string | null {
return realName(visit.name) ?? realName(visit.place?.name) ?? realName(visit.place?.address);
}