Skip to content

Commit 222d7ce

Browse files
author
guillempc
committed
docs: replace dataKeywordArgument for eventKeyJmesPath use to access keyword argument
1 parent d281d46 commit 222d7ce

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/idempotency/src/makeIdempotent.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,9 @@ const isOptionsWithDataIndexArgument = (
5656
* // we use wrapper to make processing function idempotent with DynamoDBPersistenceLayer
5757
* const processIdempotently = makeIdempotent(processRecord, {
5858
* persistenceStore: new DynamoDBPersistenceLayer()
59-
* dataKeywordArgument: 'transactionId', // keyword argument to hash the payload and the result
59+
* config: new IdempotencyConfig({
60+
* eventKeyJmesPath: 'transactionId', // this will use `transactionId` argument as idempotency payload
61+
* }),
6062
* });
6163
*
6264
* export const handler = async (

0 commit comments

Comments
 (0)