mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-09-29 22:58:18 -05:00
fix user page crash with no placements
This commit is contained in:
@@ -82,7 +82,7 @@ const resolvers = {
|
||||
`https://cdn.discordapp.com/avatars/${root.discordId}/${root.discordAvatar}.jpg`,
|
||||
profilePath: (root) => "/u/" + root.discordId,
|
||||
xRankPlacements: (root, _, ctx) =>
|
||||
ctx.xRankPlacementLoader.load(root.playerId),
|
||||
root.playerId ? ctx.xRankPlacementLoader.load(root.playerId) : null,
|
||||
},
|
||||
User: {
|
||||
top500: async (root) => {
|
||||
|
||||
Reference in New Issue
Block a user