Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion packages/idempotency/src/makeIdempotent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,9 @@ const isOptionsWithDataIndexArgument = (
* // we use wrapper to make processing function idempotent with DynamoDBPersistenceLayer
* const processIdempotently = makeIdempotent(processRecord, {
* persistenceStore: new DynamoDBPersistenceLayer()
* dataKeywordArgument: 'transactionId', // keyword argument to hash the payload and the result
* config: new IdempotencyConfig({
* eventKeyJmesPath: 'transactionId', // this will use `transactionId` argument as idempotency payload
* }),
* });
*
* export const handler = async (
Expand Down
1 change: 0 additions & 1 deletion packages/idempotency/tests/unit/IdempotencyHandler.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ const mockFunctionPayloadToBeHashed = {};
const persistenceStore = new PersistenceLayerTestClass();
const mockIdempotencyOptions = {
persistenceStore,
dataKeywordArgument: 'testKeywordArgument',
config: new IdempotencyConfig({}),
};

Expand Down
Loading