mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-12-01 00:43:15 +00:00
fix(roadtrip): match cross-day returns to their rental
Keep located waypoints when the return desk is missing and assign them unique IDs. Join separate days only for the same hire car in both the planner and server. Keep the existing public terminal roles.
This commit is contained in:
@@ -69,7 +69,7 @@ export const roadtripCardStopSchema = z.object({
|
||||
.object({
|
||||
reservationId: idSchema,
|
||||
type: z.string().min(1).max(20),
|
||||
role: z.enum(['departure', 'arrival', 'pickup', 'return', 'stop']),
|
||||
role: z.enum(['departure', 'arrival', 'pickup', 'return']),
|
||||
title: cardText(80),
|
||||
code: z.string().min(1).max(8).nullable(),
|
||||
at: cardClockSchema.nullable(),
|
||||
|
||||
Reference in New Issue
Block a user