add discord badges from https://git.creations.works/seth pr, fixed a few things
All checks were successful
Code quality checks / biome (push) Successful in 8s
All checks were successful
Code quality checks / biome (push) Successful in 8s
This commit is contained in:
parent
cbd92de7a5
commit
c73b8725c1
21 changed files with 178 additions and 5 deletions
|
@ -58,10 +58,15 @@ async function handler(request: ExtendedRequest): Promise<Response> {
|
|||
validServices = badgeServices.map((b) => b.service);
|
||||
}
|
||||
|
||||
const badges: BadgeResult = await fetchBadges(userId, validServices, {
|
||||
nocache: cache !== "true",
|
||||
separated: seperated === "true",
|
||||
});
|
||||
const badges: BadgeResult = await fetchBadges(
|
||||
userId,
|
||||
validServices,
|
||||
{
|
||||
nocache: cache !== "true",
|
||||
separated: seperated === "true",
|
||||
},
|
||||
request,
|
||||
);
|
||||
|
||||
if (badges instanceof Error) {
|
||||
return Response.json(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue