mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-08-26 18:42:49 +00:00
autoArriveAtFinalYard() bulk-updated booking status to ARRIVED/COMPLETED via raw SQL but never emitted booking.unloadedAtYard, so WarehouseInventoryService's listener never created the warehouse_inventory row — bookings caught by this fallback (e.g. KALITY import arrivals) stayed on awaiting unload indefinitely. Emit the event per row, covering both intercity (DOMESTIC) and IMPORT as the listener already expects.