We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 28ba27e commit cb841b6Copy full SHA for cb841b6
packages/idempotency/src/persistence/BasePersistenceLayer.ts
@@ -51,8 +51,7 @@ abstract class BasePersistenceLayer implements BasePersistenceLayerInterface {
51
this.eventKeyJmesPath = idempotencyConfig?.eventKeyJmesPath;
52
this.validationKeyJmesPath = idempotencyConfig?.payloadValidationJmesPath;
53
this.payloadValidationEnabled = this.validationKeyJmesPath !== undefined || false;
54
- if (idempotencyConfig?.throwOnNoIdempotencyKey)
55
- this.throwOnNoIdempotencyKey = idempotencyConfig.throwOnNoIdempotencyKey;
+ this.throwOnNoIdempotencyKey = idempotencyConfig?.throwOnNoIdempotencyKey || false;
56
this.eventKeyJmesPath = idempotencyConfig.eventKeyJmesPath;
57
this.expiresAfterSeconds = idempotencyConfig.expiresAfterSeconds; // 1 hour default
58
// TODO: Add support for local cache
0 commit comments