Skip to content

Commit

Permalink
wip: return res
Browse files Browse the repository at this point in the history
  • Loading branch information
jessie129j committed Jan 28, 2024
1 parent 4f66df1 commit 773608a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions server/src/api/middleware/auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@ export const isLoggedIn = (req: Request, res: Response, next: NextFunction) => {
next();
} else {
console.log("not authenticated");
return res.status(409).send({ message: "test" });
res.status(403).send({ message: NOT_LOGGED_IN });
return res.status(403).send({ message: NOT_LOGGED_IN });
}
} catch (e: any) {
res.status(500).send({ "e.message": e.message });
Expand Down

0 comments on commit 773608a

Please sign in to comment.