fix(frontend): getTopFriends schema returns UserSchema[] not string[]

This commit is contained in:
2026-05-16 02:10:37 +02:00
parent 29e4af26d8
commit 2c3e7934b8

View File

@@ -232,7 +232,7 @@ export const getTopFriends = (username: string, token: string | null) =>
apiFetch(
`/users/${username}/top-friends`,
{ next: { tags: [`profile:${username}`] } },
z.object({ topFriends: z.array(z.string()) }),
z.object({ topFriends: z.array(UserSchema) }),
token
);