Skip to content

Commit

Permalink
fix: pass query language to Profile (#1652)
Browse files Browse the repository at this point in the history
  • Loading branch information
SlayerOrnstein authored Sep 30, 2024
1 parent a7a3010 commit 111e1c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/controllers/profile.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ router.get('/:username/?', cache('1 hour'), async (req, res) => {
const profile = await get(req.params.username);
if (!profile) return noResult(res);

return res.status(200).json(new Profile(profile.Results[0]));
return res.status(200).json(new Profile(profile.Results[0], req.language));
});

router.get('/:username/xpInfo/?', cache('1 hour'), async (req, res) => {
Expand Down

0 comments on commit 111e1c8

Please sign in to comment.