From 36d9326edcc6212ba2bc47135a1cf2362668d8ca Mon Sep 17 00:00:00 2001 From: Daniel Bachler Date: Thu, 8 Aug 2024 16:21:47 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A8=20fix=20compile=20errors?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- adminSiteServer/chartConfigR2Helpers.ts | 8 ++------ devTools/syncGraphersToR2/syncGraphersToR2.ts | 2 +- 2 files changed, 3 insertions(+), 7 deletions(-) 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