File tree 1 file changed +1
-2
lines changed
packages/idempotency/src/persistence
1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -51,8 +51,7 @@ abstract class BasePersistenceLayer implements BasePersistenceLayerInterface {
51
51
this . eventKeyJmesPath = idempotencyConfig ?. eventKeyJmesPath ;
52
52
this . validationKeyJmesPath = idempotencyConfig ?. payloadValidationJmesPath ;
53
53
this . payloadValidationEnabled = this . validationKeyJmesPath !== undefined || false ;
54
- if ( idempotencyConfig ?. throwOnNoIdempotencyKey )
55
- this . throwOnNoIdempotencyKey = idempotencyConfig . throwOnNoIdempotencyKey ;
54
+ this . throwOnNoIdempotencyKey = idempotencyConfig ?. throwOnNoIdempotencyKey || false ;
56
55
this . eventKeyJmesPath = idempotencyConfig . eventKeyJmesPath ;
57
56
this . expiresAfterSeconds = idempotencyConfig . expiresAfterSeconds ; // 1 hour default
58
57
// TODO: Add support for local cache
You can’t perform that action at this time.
0 commit comments