Skip to content

Commit

Permalink
change label of primary key in queries
Browse files Browse the repository at this point in the history
  • Loading branch information
jdub233 committed Nov 13, 2023
1 parent 9ba73da commit b8755ae
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/authorizeRequest/authorizeRequest.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ async function authorizeRequest(userRequest, siteRule) {
// to avoid INFO Failed to find the group in DynamoDB for group: entire-bu-community
const { Item } = await dynamoDb.get({
TableName: tableName,
Key: { SiteAndGroupKey: siteAndGroupKey },
Key: { PK: siteAndGroupKey },
});

if (Item == null) {
Expand Down
2 changes: 1 addition & 1 deletion src/authorizeRequest/getProtectedSites.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ async function getProtectedSites() {

const { Item } = await dynamoDb.get({
TableName: tableName,
Key: { SiteAndGroupKey: 'PROTECTED_SITES' },
Key: { PK: 'PROTECTED_SITES' },
});

const { ProtectedSites } = Item;
Expand Down
2 changes: 1 addition & 1 deletion src/getOrCreateObject/resizeAndSave/lookupCustomCrop.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ async function lookupCustomCrop(url, domain, sizeMatch) {
const params = {
TableName: tableName,
Key: {
SiteAndGroupKey: `SIZES#${domain}${siteName}`,
PK: `SIZES#${domain}${siteName}`,
},
};

Expand Down

0 comments on commit b8755ae

Please sign in to comment.