rhythia-api 148.0.0 → 149.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/getBeatmapPage.ts +4 -0
- package/api/getLeaderboard.ts +1 -0
- package/index.ts +2 -0
- package/package.json +1 -1
package/api/getBeatmapPage.ts
CHANGED
|
@@ -28,6 +28,8 @@ export const Schema = {
|
|
|
28
28
|
ownerUsername: z.string().nullable().optional(),
|
|
29
29
|
ownerAvatar: z.string().nullable().optional(),
|
|
30
30
|
status: z.string().nullable().optional(),
|
|
31
|
+
description: z.string().nullable().optional(),
|
|
32
|
+
tags: z.string().nullable().optional(),
|
|
31
33
|
})
|
|
32
34
|
.optional(),
|
|
33
35
|
}),
|
|
@@ -92,6 +94,8 @@ export async function handler(
|
|
|
92
94
|
id: beatmapPage.id,
|
|
93
95
|
status: beatmapPage.status,
|
|
94
96
|
nominations: beatmapPage.nominations as number[],
|
|
97
|
+
description: beatmapPage.description,
|
|
98
|
+
tags: beatmapPage.tags,
|
|
95
99
|
},
|
|
96
100
|
});
|
|
97
101
|
}
|
package/api/getLeaderboard.ts
CHANGED
|
@@ -63,6 +63,7 @@ export async function getLeaderboard(page = 1, session: string) {
|
|
|
63
63
|
const { count: playersWithMorePoints, error: rankError } = await supabase
|
|
64
64
|
.from("profiles")
|
|
65
65
|
.select("*", { count: "exact", head: true })
|
|
66
|
+
.neq("ban", "excluded")
|
|
66
67
|
.gt("skill_points", queryData.skill_points);
|
|
67
68
|
|
|
68
69
|
leaderPosition = (playersWithMorePoints || 0) + 1;
|
package/index.ts
CHANGED
|
@@ -203,6 +203,8 @@ export const Schema = {
|
|
|
203
203
|
ownerUsername: z.string().nullable().optional(),
|
|
204
204
|
ownerAvatar: z.string().nullable().optional(),
|
|
205
205
|
status: z.string().nullable().optional(),
|
|
206
|
+
description: z.string().nullable().optional(),
|
|
207
|
+
tags: z.string().nullable().optional(),
|
|
206
208
|
})
|
|
207
209
|
.optional(),
|
|
208
210
|
}),
|