mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-11-21 11:36:05 +00:00
fix(trips): keep a visit's own stay when a trip is copied
insertAssignmentCopy took stay_minutes but never wrote it, so a copied trip fell back to the place's duration for every visit.
This commit is contained in:
@@ -568,6 +568,7 @@ export class DayAssignmentsRepository extends TrekRepository<DayAssignments> {
|
||||
assignment_end_time: input.assignment_end_time,
|
||||
end_day: input.end_day,
|
||||
tour_stage_key: input.tour_stage_key ?? null,
|
||||
stay_minutes: input.stay_minutes ?? null,
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user