From c1fcaf516146f49e380f2840a92b85e3236bb063 Mon Sep 17 00:00:00 2001 From: Tsu-ba-me Date: Tue, 6 Jun 2023 20:34:51 -0400 Subject: [PATCH] fix(striker-ui-api): reverse chrono order users when getting for passport --- striker-ui-api/src/middlewares/passport.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) {