Skip to content

Commit

Permalink
🔨 incorporate PR feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
danyx23 authored and sophiamersmann committed Sep 4, 2024
1 parent b701e8f commit ede005b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
4 changes: 2 additions & 2 deletions adminSiteServer/chartConfigR2Helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,14 @@ const getS3Client: () => S3Client = lazy(
)

export async function saveGrapherConfigToR2ByUUID(
id: string,
uuid: string,
chartConfigStringified: string,
configMd5FromDb: Base64String
) {
await saveGrapherConfigToR2(
chartConfigStringified,
R2GrapherConfigDirectory.byUUID,
`${id}.json`,
`${uuid}.json`,
configMd5FromDb
)
}
Expand Down
4 changes: 2 additions & 2 deletions devTools/syncGraphersToR2/syncGraphersToR2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,8 @@ async function syncWithR2(

// Delete the files in R2 that are no longer needed
await pMap(
[...hashesOfFilesToDelete.entries()],
async ([key, _]) => {
[...hashesOfFilesToDelete.keys()],
async (key) => {
const deleteObjectCommandInput: DeleteObjectCommandInput = {
Bucket: GRAPHER_CONFIG_R2_BUCKET,
Key: key,
Expand Down
1 change: 0 additions & 1 deletion packages/@ourworldindata/utils/src/Util.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -795,4 +795,3 @@ describe(formatInlineList, () => {
)
})
})
//

0 comments on commit ede005b

Please sign in to comment.