Skip to content

Commit

Permalink
fixed payload
Browse files Browse the repository at this point in the history
  • Loading branch information
comcalvi committed Jul 8, 2022
1 parent 4e0c80f commit 76e1d18
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,7 @@ async function invokeUserFunction<A extends { ResponseURL: '...' }>(functionArnE
// automatically by the JavaScript SDK.
const resp = await invokeFunction({
FunctionName: functionArn,

// Strip 'ResponseURL' -- the downstream CR doesn't need it and can only log it by accident
Payload: JSON.stringify({ ...sanitizedPayload, ResponseURL: undefined }),
Payload: JSON.stringify(sanitizedPayload),
});

log('user function response:', resp, typeof(resp));
Expand Down

0 comments on commit 76e1d18

Please sign in to comment.