From 5dd502659cd7ee4f6849813a2aa92fa35e5b1ec1 Mon Sep 17 00:00:00 2001 From: Jesse Li Date: Thu, 21 Dec 2023 13:33:46 -0500 Subject: [PATCH] fix lint issues --- backend/typescript/server.ts | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/backend/typescript/server.ts b/backend/typescript/server.ts index ce95685..2dd0748 100644 --- a/backend/typescript/server.ts +++ b/backend/typescript/server.ts @@ -121,17 +121,18 @@ app.get("/authUsers", async (req, res) => { app.get("/addMemberUids", async (req, res) => { const { term, teams } = memberData; const updatedData = await matchingService.linkMemberUids(term); - const updatedMembers = { + const {updatedMembers, duplicateUsers} = updatedData; + + const members = { term: term, teams: teams, members: updatedData.updatedMembers, }; - const duplicateUsers = updatedData.duplicateUsers; - fs.writeFileSync('./graphql/sampleData/members.json', JSON.stringify(updatedMembers)); + fs.writeFileSync('./graphql/sampleData/members.json', JSON.stringify(members)); res.status(200).json({ message: "Successfully added uids for current blueprint members, and resolved duplicates.", - data: duplicateUsers + data: duplicateUsers, }); });