From 8693a31db7ff36a2d041b673f716f3c52920f150 Mon Sep 17 00:00:00 2001 From: Steven Ewald Date: Sun, 22 Sep 2024 15:32:10 -0500 Subject: [PATCH] Add teams to web app --- .../createUser/generateApplicationEmail.ts | 3 +- .../protected/db/user/getCurrentTeam/route.ts | 31 +++++ .../api/protected/db/user/setTeam/route.ts | 28 +++++ web/app/contact/page.tsx | 2 +- web/app/dash/dash-nav.tsx | 13 +- web/app/dash/group/page.tsx | 117 ++++++++++++++++++ .../migrations/20240922195531_/migration.sql | 16 +++ .../migrations/20240922195636_/migration.sql | 15 +++ web/prisma/schema.prisma | 9 ++ 9 files changed, 226 insertions(+), 8 deletions(-) create mode 100644 web/app/api/protected/db/user/getCurrentTeam/route.ts create mode 100644 web/app/api/protected/db/user/setTeam/route.ts create mode 100644 web/app/dash/group/page.tsx create mode 100644 web/prisma/migrations/20240922195531_/migration.sql create mode 100644 web/prisma/migrations/20240922195636_/migration.sql diff --git a/web/app/api/protected/db/user/createUser/generateApplicationEmail.ts b/web/app/api/protected/db/user/createUser/generateApplicationEmail.ts index 6f8be4dc..52ba3ebe 100644 --- a/web/app/api/protected/db/user/createUser/generateApplicationEmail.ts +++ b/web/app/api/protected/db/user/createUser/generateApplicationEmail.ts @@ -28,7 +28,8 @@ export async function GenerateApplicationEmail(user: User, profile: Profile) { const mailOptions = { from: "contact@nutc.io", - to: "nuft@u.northwestern.edu", + // to: "nuft@u.northwestern.edu", + to: "steveewald2025@u.northwestern.edu", subject: `[ACTION REQUIRED] NUTC Application Submitted`, text: `