From 6a4d88475493a3e9fb12ee261101d6e82f3cc9da Mon Sep 17 00:00:00 2001 From: Ryan Cohen Date: Mon, 12 Sep 2022 11:59:03 +0900 Subject: [PATCH] fix: remove useless conditional --- server/routes/auth.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/routes/auth.ts b/server/routes/auth.ts index 09c013b72..402a4efc1 100644 --- a/server/routes/auth.ts +++ b/server/routes/auth.ts @@ -287,7 +287,7 @@ authRoutes.post('/local', async (req, res, next) => { } // Set logged in session - if (user && req.session) { + if (req.session) { req.session.userId = user.id; }