aboutsummaryrefslogtreecommitdiffstats
path: root/backend
diff options
context:
space:
mode:
Diffstat (limited to 'backend')
-rw-r--r--backend/src/routes/user.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/backend/src/routes/user.ts b/backend/src/routes/user.ts
index 7e030fd..96a452e 100644
--- a/backend/src/routes/user.ts
+++ b/backend/src/routes/user.ts
@@ -31,7 +31,8 @@ export const handleMeRoute = async (req: express.Request, res: express.Response)
FROM "Score" s
INNER JOIN "Game" g ON g."internalName" = s."gameInternalName"
WHERE s."userId" = ${parseInt(userId as string)}
- ORDER BY s."gameInternalName", s."timestamp" DESC;
+ ORDER BY s."gameInternalName", s."timestamp" DESC
+ LIMIT 5;
`;
const scoreCountByGame: SafeGameCount[] = await prisma.$queryRaw`
SELECT
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage