Skip to content

Commit

Permalink
Revert "feat(BounceController): log SNS topic confirmation notificati…
Browse files Browse the repository at this point in the history
…on emails" (#3533)
  • Loading branch information
karrui authored Mar 1, 2022
1 parent 23f3367 commit 3b93abb
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions src/app/modules/bounce/bounce.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,17 +23,6 @@ export const handleSns: ControllerHandler<
never,
ISnsNotification
> = async (req, res) => {
if (req.get('x-amz-sns-message-type') === 'SubscriptionConfirmation') {
logger.info({
meta: {
action: 'handleSns',
body: req.body,
},
message: 'Handling SNS topic confirmation notification',
})
return res.sendStatus(StatusCodes.OK)
}

const notificationResult = await BounceService.validateSnsRequest(
req.body,
).andThen(() => BounceService.safeParseNotification(req.body.Message))
Expand Down

0 comments on commit 3b93abb

Please sign in to comment.