From ff93467d1591d372cea30da09189508609482957 Mon Sep 17 00:00:00 2001 From: Joe Au-Yeung Date: Sun, 19 Feb 2023 00:40:14 -0500 Subject: [PATCH] Clean up --- apps/web/pages/api/email.ts | 11 ----------- packages/lib/serverConfig.ts | 9 --------- 2 files changed, 20 deletions(-) diff --git a/apps/web/pages/api/email.ts b/apps/web/pages/api/email.ts index 4e66ffca40..e353dfa4c6 100644 --- a/apps/web/pages/api/email.ts +++ b/apps/web/pages/api/email.ts @@ -35,17 +35,6 @@ const handler = async (req: NextApiRequest, res: NextApiResponse) => { uid: "xxyPr4cg2xx4XoS2KeMEQy", metadata: {}, recurringEvent: null, - team: { - name: "Team example", - members: [ - { name: "team member 1", email: "team@example.com" }, - { name: "team member 2", email: "team2@example.com" }, - { name: "team member 3", email: "team3@example.com" }, - { name: "team member 4", email: "team4@example.com" }, - { name: "team member 5", email: "team5@example.com" }, - { name: "team member 6", email: "team6@example.com" }, - ], - }, appsStatus: [ { appName: "Outlook Calendar", diff --git a/packages/lib/serverConfig.ts b/packages/lib/serverConfig.ts index ff64e52ae8..46c6dca0a5 100644 --- a/packages/lib/serverConfig.ts +++ b/packages/lib/serverConfig.ts @@ -26,15 +26,6 @@ function detectTransport(): SendmailTransport.Options | SMTPConnection.Options | return transport; } - if (process.env.EMAIL_SERVER_PORT) { - const port = parseInt(process.env.EMAIL_SERVER_PORT!); - const transport = { - port, - }; - - return transport; - } - return { sendmail: true, newline: "unix",