Skip to content

Commit 1bf6f08

Browse files
CCM-13372 - Update pk and sk values
1 parent 01c4ada commit 1bf6f08

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -112,13 +112,13 @@ export class SupplierConfigRepository {
112112
KeyConditionExpression: "#pk = :pk AND #packSpecId = :packSpecId",
113113
FilterExpression: "#status = :status AND #approval = :approval",
114114
ExpressionAttributeNames: {
115-
"#pk": "PK",
115+
"#pk": "pk",
116116
"#packSpecId": "packSpecificationId",
117117
"#status": "status",
118118
"#approval": "approval",
119119
},
120120
ExpressionAttributeValues: {
121-
":pk": "SUPPLIER_PACK",
121+
":pk": "#Entity#supplier-pack",
122122
":packSpecId": packSpecId,
123123
":status": "PROD",
124124
":approval": "APPROVED",
@@ -133,7 +133,7 @@ export class SupplierConfigRepository {
133133
const result = await this.ddbClient.send(
134134
new GetCommand({
135135
TableName: this.config.supplierConfigTableName,
136-
Key: { PK: "PACK_SPECIFICATION", SK: packSpecId },
136+
Key: { pk: "ENTITY#pack_specification", sk: `ID#${packSpecId}` },
137137
}),
138138
);
139139
if (!result.Item) {

0 commit comments

Comments
 (0)