mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-10-19 13:36:48 +00:00
094e0b28f8
confirm() created the venue's place row in its own transaction and broadcast place:created before the booking and its cost were written in a second one. When that second write failed, the item was skipped but the trip kept a place no booking pointed at, and clients had already been told about it. Per item, the venue and endpoint geocoding, the day lookups and the cost's frozen rate still run first, outside any transaction. The place row, the booking and its linked cost then go into one transaction through the new ReservationsService.createWithCostInTx, the core that createWithCost itself now wraps. place:created, reservation:created, accommodation:created, the stay mirror and the cost events are sent only after the commit. Each item keeps its own transaction, so a failing item still leaves the others imported; confirm() is tagged @txIndependent for that and leaves the lint:tx baseline.
24 lines
1015 B
JSON
24 lines
1015 B
JSON
{
|
|
"scripts/db-call-graph.mjs": 1036,
|
|
"scripts/generate-entities.ts": 2259,
|
|
"src/db/repositories/Places.repository.ts": 1440,
|
|
"src/db/repositories/Reservations.repository.ts": 1676,
|
|
"src/db/repositories/Trips.repository.ts": 1121,
|
|
"src/db/repositories/Users.repository.ts": 1710,
|
|
"src/nest/atlas/atlas-geo.ts": 1005,
|
|
"src/nest/atlas/atlas.service.ts": 1182,
|
|
"src/nest/auth/auth.service.ts": 1165,
|
|
"src/nest/budget/budget.service.ts": 1702,
|
|
"src/nest/collections/collections.service.ts": 1488,
|
|
"src/nest/doc-sync/doc-sync.service.ts": 1060,
|
|
"src/nest/doc-sync/providers/synology-drive.client.ts": 1160,
|
|
"src/nest/journey/journey-domain.service.ts": 1804,
|
|
"src/nest/maps/maps.service.ts": 3252,
|
|
"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": 1239,
|
|
"src/nest/trips/trips.service.ts": 1009,
|
|
"src/nest/vacay/vacay.service.ts": 1440
|
|
}
|