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

This commit is contained in:
creations 2025-04-19 22:46:35 -04:00
parent cbd92de7a5
commit c73b8725c1
Signed by: creations
GPG key ID: 8F553AA4320FC711
21 changed files with 178 additions and 5 deletions

View file

@ -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(