Skip to content

Commit

Permalink
facebook/graph: Don't override res.body.batch_app_id
Browse files Browse the repository at this point in the history
  • Loading branch information
baltpeter committed Apr 10, 2023
1 parent 9762ddb commit e694d59
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/adapters/facebook.ts
Original file line number Diff line number Diff line change
Expand Up @@ -428,10 +428,10 @@ export const adapters: Adapter[] = [

decodingSteps: [
{ function: 'parseJson', input: 'body', output: 'b' },
{ function: 'getProperty', input: 'b', options: { path: 'batch_app_id' }, output: 'res.body.batch_app_id' },
{ function: 'parseJson', input: 'b.batch', output: 'batch' },
{ function: 'getProperty', mapInput: 'batch', options: { path: 'relative_url' }, output: 'relativeUrls' },
{ function: 'parseQueryString', mapInput: 'relativeUrls', output: 'res.body' },
{ function: 'getProperty', input: 'b', options: { path: 'batch_app_id' }, output: 'res.body.batch_app_id' },
],
containedDataPaths: graphContainedDataPaths,
},
Expand Down

0 comments on commit e694d59

Please sign in to comment.