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