diff --git a/striker-ui-api/src/middlewares/passport.ts b/striker-ui-api/src/middlewares/passport.ts index 711cb6ea..58b13b50 100644 --- a/striker-ui-api/src/middlewares/passport.ts +++ b/striker-ui-api/src/middlewares/passport.ts @@ -31,8 +31,9 @@ passport.use( user_algorithm, user_hash_count FROM users - WHERE user_algorithm != 'DELETED' + WHERE user_algorithm != '${DELETED}' AND user_name = '${username}' + ORDER BY modified_date DESC LIMIT 1;`, ); } catch (queryError) {