← back to Designer Wallcoverings
Fix Tres Tintas room generator infinite-loop: GraphQL var name was $c but script passed {cursor} -> after:null every page (only 120-200 of 592 seen). Pass {c:cursor}, bump to first:100, add frozen-cursor break guard.
b2a25a5b8fd71fa2a63931223a16b520799ce6a3 · 2026-06-23 11:56:45 -0700 · Steve Abrams
Files touched
M shopify/scripts/tres-tintas-room-settings.js
Diff
commit b2a25a5b8fd71fa2a63931223a16b520799ce6a3
Author: Steve Abrams <steve@designerwallcoverings.com>
Date: Tue Jun 23 11:56:45 2026 -0700
Fix Tres Tintas room generator infinite-loop: GraphQL var name was $c but script passed {cursor} -> after:null every page (only 120-200 of 592 seen). Pass {c:cursor}, bump to first:100, add frozen-cursor break guard.
---
shopify/scripts/tres-tintas-room-settings.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/shopify/scripts/tres-tintas-room-settings.js b/shopify/scripts/tres-tintas-room-settings.js
index 96f11af0..b610af32 100644
--- a/shopify/scripts/tres-tintas-room-settings.js
+++ b/shopify/scripts/tres-tintas-room-settings.js
@@ -115,7 +115,7 @@ async function main() {
let cursor = null, scanned = 0, need = 0, processed = 0, ok = 0, errs = 0, spend = 0;
while (true) {
- const conn = (await gql(q, { cursor })).products;
+ const conn = (await gql(q, { c: cursor })).products; // var is $c, not $cursor
for (const e of conn.edges) {
const n = e.node; scanned++;
const id = n.id.split('/').pop();
← 7467dd91 auto-save: 2026-06-23T11:51:26 (5 files) — shopify/scripts/c
·
back to Designer Wallcoverings
·
DW vendor-collection routing + grey-header contrast fix (can a2606953 →