fix(reservations): a booking read on its own carries its day slots, so an edit no longer drops them

The create and update answers, the reservation:updated broadcast and the MCP
reservation tools all hand back the single booking read, and that read never
loaded reservation_day_positions. The day list puts a booking moved on a day by
that slot before its time, and the client replaces the booking with the answer,
so a booking moved on a day jumped back to its time after every edit until the
next reload. The read now attaches day_positions in the shape the trip list
already sends.

Refs #2631
This commit is contained in:
Maurice
2026-10-12 12:32:24 +02:00
parent c2dd66986c
commit eaab7dc4e4
12 changed files with 108 additions and 7 deletions
+1
View File
@@ -479,6 +479,7 @@ export async function createPluginRpcHostParts(
await createTestReservationsRepo(db),
await createTestReservationEndpointsRepo(db),
await createTestReservationTravelersRepo(db),
await createTestReservationDayPositionsRepo(db),
),
accommodations,
await createTestUnitOfWork(db),