Skip to content

Commit

Permalink
🔨 fix compile errors
Browse files Browse the repository at this point in the history
  • Loading branch information
danyx23 committed Aug 12, 2024
1 parent 6321b7f commit 36d9326
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
8 changes: 2 additions & 6 deletions adminSiteServer/chartConfigR2Helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,7 @@ import {
PutObjectCommandInput,
S3Client,
} from "@aws-sdk/client-s3"
import {
Base64String,
excludeUndefined,
JsonError,
} from "@ourworldindata/utils"
import { Base64String, JsonError } from "@ourworldindata/utils"
import { logErrorAndMaybeSendToBugsnag } from "../serverUtils/errorLog.js"
import { createHash } from "crypto"

Expand Down Expand Up @@ -163,7 +159,7 @@ export async function deleteGrapherConfigFromR2(
} catch (err) {
await logErrorAndMaybeSendToBugsnag(err)
throw new JsonError(
`Failed to delete the grapher config to R2 at ${path}. Inner error: ${err}`
`Failed to delete the grapher config to R2 at ${directory}/${filename}. Inner error: ${err}`
)
}
}
2 changes: 1 addition & 1 deletion devTools/syncGraphersToR2/syncGraphersToR2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,7 @@ async function syncWithR2(
console.error(`${errors.length} Errors during upserts`)
for (const error of errors) {
console.error(error)
}
}
}

Expand Down Expand Up @@ -247,7 +248,6 @@ async function main(parsedArgs: parseArgs.ParsedArgs, dryRun: boolean) {
dryRun
)


// Sync charts by UUID
const slugsAndHashesFromDbByUuid = await knexRaw<
Pick<DbRawChartConfig, "fullMd5" | "id">
Expand Down

0 comments on commit 36d9326

Please sign in to comment.