Skip to content

Commit

Permalink
N21-1269 pseudonym username fix (#3312)
Browse files Browse the repository at this point in the history
  • Loading branch information
arnegns authored Sep 22, 2023
1 parent 7333a1c commit 8b7754f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions controllers/oauth2.js
Original file line number Diff line number Diff line change
Expand Up @@ -149,10 +149,9 @@ router.get('/username/:pseudonym', async (req, res, next) => {
if (Configuration.get('FEATURE_CTL_TOOLS_TAB_ENABLED')) {
const pseudonymResponse = await api(req, { version: 'v3' })
.get(`/pseudonyms/${req.params.pseudonym}`);

const userResponse = await api(req)
.get('/users', {
qs: { id: pseudonymResponse.userId },
qs: { _id: pseudonymResponse.userId },
$limit: 1,
});
if (userResponse.data.length) {
Expand Down

0 comments on commit 8b7754f

Please sign in to comment.