@@ -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") {
|
||||
|
||||
Reference in New Issue
Block a user