From eda2ce2db4a5fcb06e9245e0389eb4b0745d8a97 Mon Sep 17 00:00:00 2001 From: John Mizerek Date: Tue, 10 Mar 2026 13:17:00 -0700 Subject: [PATCH] Fix DoorDash GraphQL: remove unused variable declarations shouldFetchPresetCarousels and shouldFetchStoreLiteData were declared in the query signature but not used in the body, causing 400 errors. Co-Authored-By: Claude Opus 4.6 --- playwright/doordash-modifiers.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/playwright/doordash-modifiers.js b/playwright/doordash-modifiers.js index c534786..327f495 100644 --- a/playwright/doordash-modifiers.js +++ b/playwright/doordash-modifiers.js @@ -148,7 +148,7 @@ chromium.use(stealth()); if (!queryTemplate) { log("Could not capture query template, using production query"); // Full production query matching DoorDash's frontend schema - queryTemplate = `query itemPage($storeId: ID!, $itemId: ID!, $consumerId: ID, $isMerchantPreview: Boolean, $isNested: Boolean!, $fulfillmentType: FulfillmentType, $shouldFetchPresetCarousels: Boolean!, $cursorContext: ItemPageCursorContextInput, $shouldFetchStoreLiteData: Boolean!, $scheduledMinTimeUtc: String, $scheduledMaxTimeUtc: String) { + queryTemplate = `query itemPage($storeId: ID!, $itemId: ID!, $consumerId: ID, $isMerchantPreview: Boolean, $isNested: Boolean!, $fulfillmentType: FulfillmentType, $cursorContext: ItemPageCursorContextInput, $scheduledMinTimeUtc: String, $scheduledMaxTimeUtc: String) { itemPage( storeId: $storeId itemId: $itemId @@ -285,10 +285,8 @@ fragment NestedExtrasFragment on OptionList { consumerId: null, isMerchantPreview: false, isNested: false, - shouldFetchPresetCarousels: false, fulfillmentType: "Pickup", - cursorContext: {}, - shouldFetchStoreLiteData: false + cursorContext: {} }, query: query })