Skip to content

Commit 839e9bc

Browse files
fix typescript
1 parent 609de6b commit 839e9bc

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -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)