rhythia-api 210.0.0 → 212.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/api/getBadgeLeaders.ts +2 -7
- package/index.ts +0 -2
- package/package.json +1 -1
package/api/getBadgeLeaders.ts
CHANGED
|
@@ -13,8 +13,6 @@ export const Schema = {
|
|
|
13
13
|
display_name: z.string(),
|
|
14
14
|
avatar_url: z.string().nullable(),
|
|
15
15
|
special_badge_count: z.number(),
|
|
16
|
-
earned_badges: z.array(z.string()),
|
|
17
|
-
all_badges: z.any(), // JSON type
|
|
18
16
|
})
|
|
19
17
|
),
|
|
20
18
|
total_count: z.number(),
|
|
@@ -22,11 +20,8 @@ export const Schema = {
|
|
|
22
20
|
}),
|
|
23
21
|
};
|
|
24
22
|
|
|
25
|
-
export async function
|
|
26
|
-
|
|
27
|
-
const limit = Math.min(parseInt(url.searchParams.get("limit") || "100"), 100);
|
|
28
|
-
|
|
29
|
-
return handler({ limit });
|
|
23
|
+
export async function POST(request: Request): Promise<NextResponse> {
|
|
24
|
+
return handler({ limit: 100 });
|
|
30
25
|
}
|
|
31
26
|
|
|
32
27
|
export async function handler({
|
package/index.ts
CHANGED