From 7bbed63fb592df9b5fd081eebad614a8a1a4c281 Mon Sep 17 00:00:00 2001 From: Greg Brimble Date: Thu, 12 Sep 2024 08:23:33 -0400 Subject: [PATCH] Fix asset upload count messaging (#6687) --- .changeset/purple-bobcats-itch.md | 5 +++++ packages/wrangler/src/experimental-assets.ts | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .changeset/purple-bobcats-itch.md diff --git a/.changeset/purple-bobcats-itch.md b/.changeset/purple-bobcats-itch.md new file mode 100644 index 000000000000..c9441757b3ac --- /dev/null +++ b/.changeset/purple-bobcats-itch.md @@ -0,0 +1,5 @@ +--- +"wrangler": patch +--- + +fix: Fix asset upload count messaging diff --git a/packages/wrangler/src/experimental-assets.ts b/packages/wrangler/src/experimental-assets.ts index 42e029210b9b..e1adbed991fd 100644 --- a/packages/wrangler/src/experimental-assets.ts +++ b/packages/wrangler/src/experimental-assets.ts @@ -143,7 +143,7 @@ export const syncExperimentalAssets = async ( body: payload, } ); - assetUploadCount += payload.length; + assetUploadCount += bucket.length; logger.info( `Uploaded ${assetUploadCount} of ${numberFilesToUpload} assets` );