From 4f7a1060d4e34bffb170efcd18c2a788145d6d42 Mon Sep 17 00:00:00 2001 From: Faris Durrani Date: Wed, 18 Oct 2023 10:42:48 -0400 Subject: [PATCH] minor assertion --- serverless/packages/functions/src/notifications/email.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/serverless/packages/functions/src/notifications/email.ts b/serverless/packages/functions/src/notifications/email.ts index fa1f2d0bc..07d78e423 100644 --- a/serverless/packages/functions/src/notifications/email.ts +++ b/serverless/packages/functions/src/notifications/email.ts @@ -4,6 +4,7 @@ import { SendEmailCommand, SendEmailCommandInput, } from "@aws-sdk/client-sesv2"; +import assert from "assert"; const DLP_EMAIL = "dlp@datasciencegt.org"; @@ -17,6 +18,7 @@ export const handler: APIGatewayProxyHandlerV2 = async (event) => { }; } + assert(event.body, "event.body is undefined"); const bodyJson = JSON.parse(event.body); const {