We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 609de6b commit 839e9bcCopy full SHA for 839e9bc
1 file changed
internal/datastore/src/supplier-config-repository.ts
@@ -64,11 +64,11 @@ export class SupplierConfigRepository {
64
},
65
}),
66
);
67
- if (!result.Item) {
+ if (!result.Items) {
68
throw new Error(
69
- `Supplier allocations for volume group with id ${groupId} not found`,
+ `No supplier allocations found for volume group id ${groupId}`,
70
71
}
72
- return $SupplierAllocation.array().parse(result.Item.items);
+ return $SupplierAllocation.array().parse(result.Items);
73
74
0 commit comments