Skip to content

Commit

Permalink
style: remove console logs
Browse files Browse the repository at this point in the history
  • Loading branch information
Xavilien committed Feb 8, 2025
1 parent 960bc9e commit ed5448a
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/controllers/JudgeController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,9 @@ export async function getJudges(req: Request, res: Response): Promise<void> {
// Make judges from a list of emails
export async function makeJudges(req: Request, res: Response): Promise<void> {
const emails = req.body as string[];
console.log(0);
console.log(emails);
if (!Array.isArray(emails)) {
console.log(1);
return bad(res, "Request body should be an array of emails!");
}
console.log(2);

await User.updateMany(
{
Expand All @@ -41,7 +37,6 @@ export async function makeJudges(req: Request, res: Response): Promise<void> {
judge: true,
}
);
console.log(3);

res.status(200).send();
}
Expand Down

0 comments on commit ed5448a

Please sign in to comment.