Skip to content

Commit

Permalink
minor assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
farisdurrani committed Oct 18, 2023
1 parent 5d23587 commit 4f7a106
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions serverless/packages/functions/src/notifications/email.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import {
SendEmailCommand,
SendEmailCommandInput,
} from "@aws-sdk/client-sesv2";
import assert from "assert";

const DLP_EMAIL = "dlp@datasciencegt.org";

Expand All @@ -17,6 +18,7 @@ export const handler: APIGatewayProxyHandlerV2 = async (event) => {
};
}

assert(event.body, "event.body is undefined");
const bodyJson = JSON.parse(event.body);

const {
Expand Down

0 comments on commit 4f7a106

Please sign in to comment.