Skip to content

Commit b3bdda9

Browse files
fix typescript
1 parent 0c708d2 commit b3bdda9

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

internal/datastore/src/supplier-config-repository.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@ import {
66
import { Logger } from "pino";
77
import {
88
$LetterVariant,
9-
LetterVariant,
10-
$VolumeGroup,
11-
VolumeGroup,
129
$SupplierAllocation,
10+
$VolumeGroup,
11+
LetterVariant,
1312
SupplierAllocation,
13+
VolumeGroup,
1414
} from "./SupplierConfigDomain";
1515

1616
export type SupplierConfigRepositoryConfig = {
@@ -64,11 +64,11 @@ export class SupplierConfigRepository {
6464
},
6565
}),
6666
);
67-
if (!result.Item) {
67+
if (!result.Items) {
6868
throw new Error(
69-
`Supplier allocations for volume group with id ${groupId} not found`,
69+
`No supplier allocations found for volume group id ${groupId}`,
7070
);
7171
}
72-
return $SupplierAllocation.array().parse(result.Item.items);
72+
return $SupplierAllocation.array().parse(result.Items);
7373
}
7474
}

0 commit comments

Comments
 (0)