We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 609de6b commit 3a5ccf1Copy full SHA for 3a5ccf1
1 file changed
internal/datastore/src/supplier-config-repository.ts
@@ -6,11 +6,11 @@ import {
6
import { Logger } from "pino";
7
import {
8
$LetterVariant,
9
- LetterVariant,
10
- $VolumeGroup,
11
- VolumeGroup,
12
$SupplierAllocation,
+ $VolumeGroup,
+ LetterVariant,
13
SupplierAllocation,
+ VolumeGroup,
14
} from "./SupplierConfigDomain";
15
16
export type SupplierConfigRepositoryConfig = {
@@ -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