diff --git a/backend/controllers/group.ts b/backend/controllers/group.ts index 74a5995..d0256bf 100644 --- a/backend/controllers/group.ts +++ b/backend/controllers/group.ts @@ -1,4 +1,4 @@ -import { Request, Response } from "express"; +import { Response } from "express"; import { getAllGroups } from "ntnui-tools"; import { RequestWithNtnuiNo } from "../utils/request"; @@ -10,7 +10,8 @@ export const getGroups = async ( const groups = await getAllGroups(req.body.category); return res.status(200).json(groups); } catch (error) { - console.error("Error in getGroups controller:", error); - return res.status(500).json({ message: "Error fetching groups" }); + return res + .status(500) + .json({ message: "Error while fetching groups from medlem" }); } };