fix(striker-ui-api): reverse chrono order users when getting for passport

main
Tsu-ba-me 2 years ago
parent c5015bf43f
commit c1fcaf5161
  1. 3
      striker-ui-api/src/middlewares/passport.ts

@ -31,8 +31,9 @@ passport.use(
user_algorithm, user_algorithm,
user_hash_count user_hash_count
FROM users FROM users
WHERE user_algorithm != 'DELETED' WHERE user_algorithm != '${DELETED}'
AND user_name = '${username}' AND user_name = '${username}'
ORDER BY modified_date DESC
LIMIT 1;`, LIMIT 1;`,
); );
} catch (queryError) { } catch (queryError) {

Loading…
Cancel
Save