We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4a8ae7f commit 9aaeec8Copy full SHA for 9aaeec8
1 file changed
lambdas/api-handler/src/mappers/mi-mapper.ts
@@ -37,15 +37,17 @@ export function mapToPostMIResponse(mi: MIBase): PostMIResponse {
37
38
export function mapToGetMIResponse(mi: MIBase): GetMIResponse {
39
return GetMIResponseResourceSchema.parse({
40
- id: mi.id,
41
- type: "ManagementInformation",
42
- attributes: {
43
- lineItem: mi.lineItem,
44
- timestamp: mi.timestamp,
45
- quantity: mi.quantity,
46
- specificationId: mi.specificationId,
47
- groupId: mi.groupId,
48
- stockRemaining: mi.stockRemaining,
+ data: {
+ id: mi.id,
+ type: "ManagementInformation",
+ attributes: {
+ lineItem: mi.lineItem,
+ timestamp: mi.timestamp,
+ quantity: mi.quantity,
+ specificationId: mi.specificationId,
+ groupId: mi.groupId,
49
+ stockRemaining: mi.stockRemaining,
50
+ },
51
},
52
});
53
}
0 commit comments