[object Object]

← back to Kravet Wrongjoin Reprice 2026 07

auto-save: 2026-07-15T16:38:37 (1 files) — apply-reprice.js

1d96848661c9693dc6e42f8b099e930022e5fe04 · 2026-07-15 16:38:41 -0700 · Steve Abrams

Files touched

Diff

commit 1d96848661c9693dc6e42f8b099e930022e5fe04
Author: Steve Abrams <steve@designerwallcoverings.com>
Date:   Wed Jul 15 16:38:41 2026 -0700

    auto-save: 2026-07-15T16:38:37 (1 files) — apply-reprice.js
---
 apply-reprice.js | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/apply-reprice.js b/apply-reprice.js
index 97b2e82..65730f9 100644
--- a/apply-reprice.js
+++ b/apply-reprice.js
@@ -101,8 +101,9 @@ const M_MAP_NOTYPE = `mutation($mf:[MetafieldsSetInput!]!){metafieldsSet(metafie
     if (DRY) { updated++; log({ dw_sku: r.dw_sku, action: 'would_update', from: live, to: r.correct_price }); await sleep(150); continue; }
 
     const w = await gqlR(M_PRICE, { pid: p.id, variants: [{ id: main.id, price: r.correct_price.toFixed(2) }] });
-    const ue = w && w.data && w.data.productVariantsBulkUpdate && w.data.productVariantsBulkUpdate.userErrors;
-    const got = w && w.data && w.data.productVariantsBulkUpdate && w.data.productVariantsBulkUpdate.productVariants;
+    const bup = w && w.data && w.data.productVariantsBulkUpdate;
+    const ue = bup && bup.userErrors;
+    const got = bup && bup.productVariants;
     if ((ue && ue.length) || !got || !got.length) {
       errors++; log({ dw_sku: r.dw_sku, action: 'error', note: 'price write failed', ue: JSON.stringify(ue).slice(0, 200) }); continue;
     }

← 42142ea APPLIED: 277 DWKK repriced to true MAP live (0 err, 277 MAP  ·  back to Kravet Wrongjoin Reprice 2026 07  ·  chore: lint clean, refactor (bup dedup), v1.0.0 (session clo d4662a3 →