From fc4f6623dd7db35f03811489402c251775d875b7 Mon Sep 17 00:00:00 2001 From: inter0p Date: Sun, 1 Aug 2021 18:07:43 -0600 Subject: [PATCH] fix for #134 --- src/sns-server.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/sns-server.ts b/src/sns-server.ts index 39fb607..1276c32 100644 --- a/src/sns-server.ts +++ b/src/sns-server.ts @@ -10,7 +10,7 @@ import { arrayify, createAttr, createMetadata, - createSnsTopicEvent, + createSnsLambdaEvent, parseMessageAttributes, parseAttributes, createMessageId, @@ -349,13 +349,12 @@ export class SNSServer implements ISNSServer { event = message; } else { event = JSON.stringify( - createSnsTopicEvent( + createSnsLambdaEvent( topicArn, sub.SubscriptionArn, subject, message, messageId, - messageStructure, messageAttributes ) );