fix(airtrail): import a flight with its AirTrail link in one transaction

The import created the booking and wrote its external_* link as two commits.
A failed link left the booking in the trip while the import reported the
flight as skipped. The flights are fetched before the loop, so nothing between
the two writes waits on the network: each flight or joined connection now goes
in with its link in one transaction, and the method is marked as one
transaction per imported booking instead of being held in the lint:tx baseline.
This commit is contained in:
Maurice
2026-10-08 15:55:57 +02:00
parent 8018f10273
commit 60a42cfac1
4 changed files with 59 additions and 5 deletions
-1
View File
@@ -27,7 +27,6 @@
"src/nest/doc-sync/doc-sync.service.ts#DocSyncService.resolveConflict": 3,
"src/nest/doc-sync/doc-sync.service.ts#DocSyncService.runLink": 4,
"src/nest/doc-sync/doc-sync.service.ts#DocSyncService.syncLink": 2,
"src/nest/integrations/airtrail-import.service.ts#AirtrailImportService.importAirtrailFlights": 8,
"src/nest/integrations/airtrail-link.service.ts#AirtrailLinkService.pushReservationToAirtrail": 2,
"src/nest/integrations/airtrail-sync.service.ts#AirtrailSyncService.runAirtrailSync": 2,
"src/nest/integrations/airtrail-sync.service.ts#AirtrailSyncService.syncOwner": 8,