From 1f97c48a99078a41677dd4347e7144ef6962e3dc Mon Sep 17 00:00:00 2001 From: Carifio24 Date: Thu, 12 Sep 2024 13:50:30 -0400 Subject: [PATCH] Update expected fields for educator signup request. --- src/server.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/server.ts b/src/server.ts index e96fcc5..3d9ad19 100644 --- a/src/server.ts +++ b/src/server.ts @@ -232,8 +232,8 @@ app.post([ ], async (req, res) => { const data = req.body; const valid = ( - typeof data.firstName === "string" && - typeof data.lastName === "string" && + typeof data.first_name === "string" && + typeof data.last_name === "string" && typeof data.password === "string" && ((typeof data.institution === "string") || (data.institution == null)) && typeof data.email === "string" &&