← back to Designerwallcoverings
tk11323-twil-8yd: remove dead/malformed unused mutation string in delMetafield()
c16eadd1973d0120b4488a3b1c977eaaa589533b · 2026-09-14 15:01:53 -0700 · Steve
delMetafield() built a local `const m = ...` GraphQL string (singular
$mf misused inside metafields:[$mf]) that was never used — the real call
beside it uses the correct list form ($ids:[MetafieldIdentifierInput!]!).
Dead code + a landmine if someone later wired `m` in. Removed it; kept a
corrected comment. No behavior change; rollback path unaffected.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01X7mfnaSD5EB3DGZcaamU8A
Files touched
M scripts/tk11323-twil-8yd/apply-8yd.mjs
Diff
commit c16eadd1973d0120b4488a3b1c977eaaa589533b
Author: Steve <steve@designerwallcoverings.com>
Date: Mon Sep 14 15:01:53 2026 -0700
tk11323-twil-8yd: remove dead/malformed unused mutation string in delMetafield()
delMetafield() built a local `const m = ...` GraphQL string (singular
$mf misused inside metafields:[$mf]) that was never used — the real call
beside it uses the correct list form ($ids:[MetafieldIdentifierInput!]!).
Dead code + a landmine if someone later wired `m` in. Removed it; kept a
corrected comment. No behavior change; rollback path unaffected.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01X7mfnaSD5EB3DGZcaamU8A
---
scripts/tk11323-twil-8yd/apply-8yd.mjs | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/scripts/tk11323-twil-8yd/apply-8yd.mjs b/scripts/tk11323-twil-8yd/apply-8yd.mjs
index 525e40e..8c1095d 100644
--- a/scripts/tk11323-twil-8yd/apply-8yd.mjs
+++ b/scripts/tk11323-twil-8yd/apply-8yd.mjs
@@ -92,8 +92,7 @@ async function setMetafield(ownerId, key, value) {
return { ok: ue.length === 0, err: ue.map(e => e.message).join('; ') || null };
}
async function delMetafield(ownerId, key) {
- const m = `mutation($mf:MetafieldIdentifierInput!){ metafieldDelete: metafieldsDelete(metafields:[$mf]){ deletedMetafields{ key } userErrors{ message } } }`;
- // metafieldsDelete takes identifiers {ownerId,namespace,key}
+ // metafieldsDelete takes a LIST of identifiers {ownerId,namespace,key}
const d = await gql(`mutation($ids:[MetafieldIdentifierInput!]!){ metafieldsDelete(metafields:$ids){ deletedMetafields{ ownerId key } userErrors{ message } } }`,
{ ids: [{ ownerId, namespace: NS, key }] });
if (d?.__err) return { ok: false, err: JSON.stringify(d.__err).slice(0, 200) };
← 484a4a8 Scope showroom-tag rollback/verify per line (fix SHOWROOM_TA
·
back to Designerwallcoverings
·
auto-data-snapshot: 2026-09-14T15:41:36 (1 data files) — dat d681254 →