From 39efb52497e42f75733c5758ae8ebffdbfca2deb Mon Sep 17 00:00:00 2001 From: Patrick Fic Date: Fri, 23 Sep 2022 13:48:45 -0700 Subject: [PATCH] Update SNS handling --- server/email/sendemail.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/server/email/sendemail.js b/server/email/sendemail.js index 802d61e0f..dc2387b1f 100644 --- a/server/email/sendemail.js +++ b/server/email/sendemail.js @@ -209,11 +209,9 @@ async function logEmail(req, email) { exports.emailBounce = async function (req, res, next) { try { const body = JSON.parse(req.body); - if (body.type === "SubscriptionConfirmation") { - logger.log("SNS-confirmation", "DEBUG", "api", null, { - message: body.message, - url: body.SubscribeUrl, - body: body, + if (body.type !== "Notification") { + logger.log("SNS-message", "DEBUG", "api", null, { + body: req.body, }); } if (body.Type === "Notification") {