rhythia-api 133.0.0 → 134.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.
@@ -15,6 +15,10 @@ export const Schema = {
15
15
  content: z.string().nullable(),
16
16
  owner: z.number(),
17
17
  created_at: z.string(),
18
+ profiles: z.object({
19
+ avatar_url: z.string().nullable(),
20
+ username: z.string().nullable(),
21
+ }),
18
22
  })
19
23
  ),
20
24
  }),
@@ -36,7 +40,15 @@ export async function handler({
36
40
  > {
37
41
  let { data: userData, error: userError } = await supabase
38
42
  .from("beatmapPageComments")
39
- .select("*")
43
+ .select(
44
+ `
45
+ *,
46
+ profiles!inner(
47
+ username,
48
+ avatar_url
49
+ )
50
+ `
51
+ )
40
52
  .eq("beatmapPage", page);
41
53
 
42
54
  return NextResponse.json({ comments: userData! });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rhythia-api",
3
- "version": "133.0.0",
3
+ "version": "134.0.0",
4
4
  "main": "index.ts",
5
5
  "scripts": {
6
6
  "update": "bun ./scripts/update.ts",