From fd440d1e3e72e1248b4e317c75a6134d959142b8 Mon Sep 17 00:00:00 2001 From: Daniel Brauer Date: Sat, 27 Jun 2020 18:06:00 +0200 Subject: [PATCH] Work around count not being a number https://github.com/adelsz/pgtyped/issues/117 --- backend/src/routes/auth.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/routes/auth.ts b/backend/src/routes/auth.ts index 8e87581..c9602aa 100644 --- a/backend/src/routes/auth.ts +++ b/backend/src/routes/auth.ts @@ -72,7 +72,7 @@ router.get('/startSignup', async function (req, res) { { username }, db ) - if (count === 0) { + if (count == 0) { req.session.signupInfo = { username } return res.send({ username }) }