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.
@@ -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
  }
@@ -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
  }),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rhythia-api",
3
- "version": "148.0.0",
3
+ "version": "149.0.0",
4
4
  "main": "index.ts",
5
5
  "scripts": {
6
6
  "update": "bun ./scripts/update.ts",