diff --git a/backend/typescript/server.ts b/backend/typescript/server.ts index 8a5dee3..70ba491 100644 --- a/backend/typescript/server.ts +++ b/backend/typescript/server.ts @@ -69,24 +69,12 @@ app.get("/diff", async (req, res) => { const currentTerm = memeberData.term; const currentTermMembers: string[] = []; - // const teamToMembers : Record = {}; memeberData.members.forEach((member) => { if (member.term === currentTerm) { currentTermMembers.push(member.name); - // if (teamToMembers[member.teams[0]]) { - // teamToMembers[member.teams[0]].push(member.name); - // } else { - // teamToMembers[member.teams[0]] = [member.name]; - // } } }); - // const teamToMemberSize : Record = {}; - // (Object.keys(teamToMembers)).forEach((team) => { - // teamToMemberSize[team] = teamToMembers[team].length; - // } - // ) - const firebaseUsers: Record = {}; firebaseAuthUsers.forEach((user) => { firebaseUsers[user.uid] = user.displayName; @@ -127,9 +115,9 @@ app.get("/authUsers", async (req, res) => { app.get("/termApplications", async (req, res) => { ref .orderByChild("term") - .equalTo("Fall 2023") - - .once("value", function fn(snapshot) { + .equalTo("Fall 2023") // Fetch all applications for (e.g. Fall 2023) + // eslint-disable-next-line func-names + .once("value", function (snapshot) { const applications: Application[] = []; snapshot.forEach((childSnapshot) => { applications.push(childSnapshot.val());