From 7356de5124f40adaebb8626bbe458fe0e010d294 Mon Sep 17 00:00:00 2001 From: Maurice Date: Sat, 24 Oct 2026 22:30:17 +0200 Subject: [PATCH] fix(journey): give the patched column shapes an index signature presenceSet accepts presenceSet takes a Record; an interface has no implicit index signature, so the two column shapes are type aliases instead. --- server/src/nest/journey/journey-entry-patch.helpers.ts | 4 ++-- server/src/nest/journey/journey-settings.helpers.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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).