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 <noreply@anthropic.com>
This commit is contained in:
John Mizerek 2026-03-10 13:17:00 -07:00
parent 59dfd602cf
commit eda2ce2db4

View file

@ -148,7 +148,7 @@ chromium.use(stealth());
if (!queryTemplate) { if (!queryTemplate) {
log("Could not capture query template, using production query"); log("Could not capture query template, using production query");
// Full production query matching DoorDash's frontend schema // 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( itemPage(
storeId: $storeId storeId: $storeId
itemId: $itemId itemId: $itemId
@ -285,10 +285,8 @@ fragment NestedExtrasFragment on OptionList {
consumerId: null, consumerId: null,
isMerchantPreview: false, isMerchantPreview: false,
isNested: false, isNested: false,
shouldFetchPresetCarousels: false,
fulfillmentType: "Pickup", fulfillmentType: "Pickup",
cursorContext: {}, cursorContext: {}
shouldFetchStoreLiteData: false
}, },
query: query query: query
}) })