parameterize affiliation

This commit is contained in:
devStorm
2021-12-04 15:19:13 -05:00
parent 45e211eb0e
commit 41e4424c8f
2 changed files with 10 additions and 3 deletions
+2
View File
@@ -30,6 +30,7 @@ module.exports = async (req, res) => {
locale,
border_radius,
border_color,
role,
} = req.query;
res.setHeader("Content-Type", "image/svg+xml");
@@ -45,6 +46,7 @@ module.exports = async (req, res) => {
const topLangs = await fetchTopLanguages(
username,
parseArray(exclude_repo),
parseArray(role).filter(value => ['OWNER', 'ORGANIZATION_MEMBER', 'COLLABORATOR'].includes(value)),
parseArray(hide),
);