From f0e685f3397244bc383c5aaf26fd2386b165ac19 Mon Sep 17 00:00:00 2001 From: karishmas6 Date: Tue, 24 Sep 2024 17:40:20 +0530 Subject: [PATCH] chore: lint --- server/src/routes/auth.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/src/routes/auth.ts b/server/src/routes/auth.ts index b743543e..f88d4f5d 100644 --- a/server/src/routes/auth.ts +++ b/server/src/routes/auth.ts @@ -73,8 +73,8 @@ router.get('/current-user', async (req: AuthenticatedRequest, res) => { return res.status(401).send('Unauthorized'); } const user = await User.findByPk(req.user.id, { - attributes: { exclude: ['password'] }, - }); + attributes: { exclude: ['password'] }, + }); return res.status(200).json({ ok: true }); } catch (error) { return res.status(500).send(`Could not fetch current user : ${error.message}.`);