We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ddfefe5 commit 3f25f52Copy full SHA for 3f25f52
1 file changed
internal/datastore/src/supplier-config-repository.ts
@@ -62,9 +62,13 @@ export class SupplierConfigRepository {
62
new QueryCommand({
63
TableName: this.config.supplierConfigTableName,
64
IndexName: "volumeGroup-index",
65
- KeyConditionExpression: "PK = :pk AND volumeGroup = :groupId",
+ KeyConditionExpression: "#pk = :pk AND #group = :groupId",
66
+ ExpressionAttributeNames: {
67
+ "#pk": "PK", // make sure this is the GSI's PK attribute name
68
+ "#group": "volumeGroup", // <-- use the **actual** GSI key name
69
+ },
70
ExpressionAttributeValues: {
- ":pk": "SUPPLIER_ALLOCATIONS",
71
+ ":pk": "SUPPLIER_ALLOCATION",
72
":groupId": groupId,
73
},
74
}),
0 commit comments