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(journey): give the patched column shapes an index signature presenceSet accepts

Maurice7356de5124f4
diff --git a/server/src/nest/journey/journey-entry-patch.helpers.ts b/server/src/nest/journey/journey-entry-patch.helpers.ts
index 6ef740e37..a4d81818a 100644
--- a/server/src/nest/journey/journey-entry-patch.helpers.ts
+++ b/server/src/nest/journey/journey-entry-patch.helpers.ts
@@ -30,7 +30,7 @@ export type JourneyEntryUpdateInput = Partial<{
}>;
/** The columns an update writes, as they are stored. */
-interface JourneyEntryColumns {
+type JourneyEntryColumns = {
type: string;
title: string | null;
story: string | null;
@@ -50,7 +50,7 @@ interface JourneyEntryColumns {
is_draft: number;
country_code: string | null;
updated_at: number;
-}
+};
/**
* JG78: the columns an update of `entry` with `data` writes, each resolved to
diff --git a/server/src/nest/journey/journey-settings.helpers.ts b/server/src/nest/journey/journey-settings.helpers.ts
index f071244f1..dd783eb0a 100644
--- a/server/src/nest/journey/journey-settings.helpers.ts
+++ b/server/src/nest/journey/journey-settings.helpers.ts
@@ -25,7 +25,7 @@ export type JourneySettingsInput = Partial<{
}>;
/** The columns an update writes, as they are stored. */
-interface JourneySettingsColumns {
+type JourneySettingsColumns = {
title: string;
subtitle: string | null;
cover_gradient: string | null;
@@ -38,7 +38,7 @@ interface JourneySettingsColumns {
show_mood: number;
show_weather: number;
auto_prepare_recordings: number;
-}
+};
const ALLOWED_STATUSES: readonly string[] = ['draft', 'active', 'completed', 'archived'];
// null hands the state back to the trip dates (#762).