diff --git a/backend/src/index.ts b/backend/src/index.ts index f8fedb7..6a695bb 100644 --- a/backend/src/index.ts +++ b/backend/src/index.ts @@ -403,7 +403,7 @@ app.get("/user/societies", async (req, res: Response) => { const userID = sessionFromDB.userId; - const societies_joined = await prisma.society.findMany({ + const societies = await prisma.society.findMany({ where: { OR: [ { @@ -422,11 +422,6 @@ app.get("/user/societies", async (req, res: Response) => { }, }); - const societies = { - joined: societies_joined, - administering: null, - }; - return res.status(200).json(societies); });