Skip to content

Commit 0240548

Browse files
a-marcelthibaultdalban
authored andcommitted
try to fix api gateway issue
1 parent 2d51bc0 commit 0240548

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/deploy/events/apiGateway/methods.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ module.exports = {
288288
return {
289289
'Fn::Sub': [
290290
`
291-
#set( $body = $util.escapeJavaScript($input.json('$')) )
291+
#set( $body = $util.escapeJavaScript($input.json(\'$\')).replaceAll("\\\\'", "\'") )
292292
{"input": "$body", "name": "$context.requestId", "stateMachineArn":"\${StateMachineArn}"}`,
293293
{ StateMachineArn: { Ref: stateMachineLogicalId } },
294294
],

0 commit comments

Comments
 (0)