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:
parent
59dfd602cf
commit
eda2ce2db4
1 changed files with 2 additions and 4 deletions
|
|
@ -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
|
||||
})
|
||||
|
|
|
|||
Reference in a new issue