Skip to content

Commit

Permalink
chore: use orderHash as Sfn execution name (#175)
Browse files Browse the repository at this point in the history
* use quoteId as sfn execution name

* use orderHash as sfn execution name
  • Loading branch information
ConjunctiveNormalForm authored May 4, 2023
1 parent 1a2ba37 commit a060f95
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/handlers/post-order/handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ export class PostOrderHandler extends APIGLambdaHandler<
const startExecutionCommand = new StartExecutionCommand({
stateMachineArn: stateMachineArn,
input: JSON.stringify(sfnInput),
name: sfnInput.orderHash,
})
log?.info(startExecutionCommand, 'Starting state machine execution')
await sfnClient.send(startExecutionCommand)
Expand Down
1 change: 1 addition & 0 deletions test/handlers/post-order.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,7 @@ describe('Testing post order handler.', () => {
new StartExecutionCommand({
stateMachineArn: MOCK_ARN,
input: JSON.stringify(sfnInput),
name: sfnInput.orderHash,
}).input
)
})
Expand Down

0 comments on commit a060f95

Please sign in to comment.