Merge branch 'main' into auth

This commit is contained in:
Nathaniel Tampus
2023-03-20 18:53:35 +08:00
committed by GitHub
8 changed files with 12 additions and 5 deletions

View File

@@ -12,7 +12,7 @@ export const getCurrentSession = async (req: Request, res: Response) => {
if (req.session.user) {
res.status(200).json(req.session.user);
} else {
res.status(404).end();
res.status(204).end();
}
} catch (err: unknown) {
console.log(err);