mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-11-26 22:57:32 +00:00
fix(reservations): roll a booking write back when its linked cost fails
createWithCost and updateWithCost run the booking and its cost in one transaction, but the cost sync still caught and logged its own errors inside it. A price that could not be written therefore committed the booking edit and left the linked expense on its old figure; only the category re-file path actually rolled back. The sync no longer swallows a failing cost write. Both WithCost methods are its only callers, so the error now reaches their transaction and the booking and its cost commit or fail together. A booking import item whose cost cannot be written is skipped like any other failing item instead of landing without its cost.
This commit is contained in:
@@ -17,7 +17,7 @@
|
||||
"src/nest/places/places.service.ts": 2020,
|
||||
"src/nest/plugins/plugin-runtime.service.ts": 1463,
|
||||
"src/nest/plugins/runtime/plugin-sdk.ts": 1094,
|
||||
"src/nest/reservations/reservations.service.ts": 1247,
|
||||
"src/nest/reservations/reservations.service.ts": 1240,
|
||||
"src/nest/trips/trips.service.ts": 1013,
|
||||
"src/nest/vacay/vacay.service.ts": 1440
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user