Skip to content

Commit

Permalink
dyk: fix noms lookup for usernames with a space
Browse files Browse the repository at this point in the history
  • Loading branch information
siddharthvp committed Mar 24, 2024
1 parent 8d77af4 commit 454400d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webservice/routes/dyk.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ router.get('/credits/:user', async (req, res, next) => {
});

router.get('/noms/:user', async (req, res, next) => {
const user = req.params.user.replace(/ /g, '_');
const user = req.params.user.replace(/_/g, ' ');

let count = await redis.hget('dyk-counts', user) as unknown as string;
if (!count) {
Expand Down

0 comments on commit 454400d

Please sign in to comment.