From 1ccf9e741ab0c532d5e3682f3f6f6c580a5c6fa5 Mon Sep 17 00:00:00 2001 From: Andrea Amorosi Date: Thu, 30 Mar 2023 16:59:59 +0200 Subject: [PATCH] chore: revert config.functionName change --- packages/idempotency/src/persistence/BasePersistenceLayer.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/idempotency/src/persistence/BasePersistenceLayer.ts b/packages/idempotency/src/persistence/BasePersistenceLayer.ts index 23a4dce63a..26f6a6ec2b 100644 --- a/packages/idempotency/src/persistence/BasePersistenceLayer.ts +++ b/packages/idempotency/src/persistence/BasePersistenceLayer.ts @@ -38,7 +38,7 @@ abstract class BasePersistenceLayer implements BasePersistenceLayerInterface { public configure(config: BasePersistenceLayerOptions): void { const { config: idempotencyConfig } = config; - if (config?.functionName?.trim() !== '') { + if (config?.functionName && config.functionName.trim() !== '') { this.idempotencyKeyPrefix = `${this.idempotencyKeyPrefix}.${config.functionName}`; }