From 40286c79766abdc899bcc0e78696aba3a3107847 Mon Sep 17 00:00:00 2001 From: Dries Hooghe Date: Tue, 1 Oct 2024 23:55:57 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix=20dynamodb=20serialization?= =?UTF-8?q?=20issue?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/integration/dynamodb/lib/dynamodb.event-store.ts | 2 +- packages/integration/dynamodb/lib/dynamodb.snapshot-store.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/integration/dynamodb/lib/dynamodb.event-store.ts b/packages/integration/dynamodb/lib/dynamodb.event-store.ts index e87ec67b..307909fa 100644 --- a/packages/integration/dynamodb/lib/dynamodb.event-store.ts +++ b/packages/integration/dynamodb/lib/dynamodb.event-store.ts @@ -203,7 +203,7 @@ export class DynamoDBEventStore extends EventStore { correlationId: metadata.correlationId, causationId: metadata.causationId, }, - { removeUndefinedValues: true }, + { removeUndefinedValues: true, convertClassInstanceToMap: true }, ), }, })), diff --git a/packages/integration/dynamodb/lib/dynamodb.snapshot-store.ts b/packages/integration/dynamodb/lib/dynamodb.snapshot-store.ts index 651083eb..d133e04d 100644 --- a/packages/integration/dynamodb/lib/dynamodb.snapshot-store.ts +++ b/packages/integration/dynamodb/lib/dynamodb.snapshot-store.ts @@ -226,7 +226,7 @@ export class DynamoDBSnapshotStore extends SnapshotStore