diff --git a/adminSiteServer/chartConfigR2Helpers.ts b/adminSiteServer/chartConfigR2Helpers.ts index 5ec7d389a47..11cff24b08f 100644 --- a/adminSiteServer/chartConfigR2Helpers.ts +++ b/adminSiteServer/chartConfigR2Helpers.ts @@ -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" @@ -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}` ) } } diff --git a/devTools/syncGraphersToR2/syncGraphersToR2.ts b/devTools/syncGraphersToR2/syncGraphersToR2.ts index 2838a658ad1..54805b67a1b 100644 --- a/devTools/syncGraphersToR2/syncGraphersToR2.ts +++ b/devTools/syncGraphersToR2/syncGraphersToR2.ts @@ -186,6 +186,7 @@ async function syncWithR2( console.error(`${errors.length} Errors during upserts`) for (const error of errors) { console.error(error) + } } } @@ -247,7 +248,6 @@ async function main(parsedArgs: parseArgs.ParsedArgs, dryRun: boolean) { dryRun ) - // Sync charts by UUID const slugsAndHashesFromDbByUuid = await knexRaw< Pick