mirror of
https://gitlab.com/PronounsPage/PronounsPage.git
synced 2025-09-23 04:34:15 -04:00
(pronouns) fix examples query parameter
This commit is contained in:
parent
8a8a410fc1
commit
153867d79d
@ -59,7 +59,7 @@ router.get('/pronouns', handleErrorAsync(async (req, res) => {
|
||||
pronouns[name] = pronoun;
|
||||
}
|
||||
for (const pronoun of Object.values(pronouns)) {
|
||||
modifyPronoun(pronoun);
|
||||
modifyPronoun(pronoun, req.query.examples);
|
||||
}
|
||||
return res.json(pronouns);
|
||||
}));
|
||||
@ -72,7 +72,7 @@ router.get('/pronouns/:pronoun*', handleErrorAsync(async (req, res) => {
|
||||
translator,
|
||||
);
|
||||
if (pronoun) {
|
||||
modifyPronoun(pronoun);
|
||||
modifyPronoun(pronoun, req.query.examples);
|
||||
}
|
||||
return res.json(pronoun);
|
||||
}));
|
||||
|
Loading…
x
Reference in New Issue
Block a user