From 5b39e3ea70de473f641b0030a861d435f718d2c8 Mon Sep 17 00:00:00 2001 From: Samy Ouyahia Date: Wed, 4 Dec 2024 15:00:43 +0100 Subject: [PATCH] Fixed missing vehicle ID in get inspection response --- packages/network/src/api/inspection/mappers.ts | 1 + .../network/test/api/inspection/data/apiInspectionGet.data.ts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/network/src/api/inspection/mappers.ts b/packages/network/src/api/inspection/mappers.ts index 7ef69a592..ff3292d62 100644 --- a/packages/network/src/api/inspection/mappers.ts +++ b/packages/network/src/api/inspection/mappers.ts @@ -489,6 +489,7 @@ export function mapApiInspectionGet( severityResultIds, taskIds, pricingIds, + vehicleId: vehicle?.id, }); return { diff --git a/packages/network/test/api/inspection/data/apiInspectionGet.data.ts b/packages/network/test/api/inspection/data/apiInspectionGet.data.ts index e55f972a2..d489e27f3 100644 --- a/packages/network/test/api/inspection/data/apiInspectionGet.data.ts +++ b/packages/network/test/api/inspection/data/apiInspectionGet.data.ts @@ -216,7 +216,7 @@ export default { 'f3ce86b5-d3a8-27dc-f3a4-24cad48e0b9b', '89216d57-0d6d-dd29-894b-cf280a4bf16e', ], - vehicle: undefined, + vehicle: '051b7118-915f-4bec-0571-d367967967ab', images: [ '6a5e9a4c-8752-c1e6-6a34-38338074eda1', 'a842f4bf-5404-215b-a828-56c053220d1c',