mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-10-19 05:26:47 +00:00
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:
@@ -479,6 +479,7 @@ export async function createPluginRpcHostParts(
|
||||
await createTestReservationsRepo(db),
|
||||
await createTestReservationEndpointsRepo(db),
|
||||
await createTestReservationTravelersRepo(db),
|
||||
await createTestReservationDayPositionsRepo(db),
|
||||
),
|
||||
accommodations,
|
||||
await createTestUnitOfWork(db),
|
||||
|
||||
Reference in New Issue
Block a user