diff options
| author | Pinapelz <yukais@pinapelz.com> | 2025-11-05 15:52:09 -0800 |
|---|---|---|
| committer | Pinapelz <yukais@pinapelz.com> | 2025-11-05 15:52:09 -0800 |
| commit | 8052754a4bcc3d07208d11aad764d2bb3492166d (patch) | |
| tree | cd12af3d27ffa124bb3a64c29cbc44e3c2b8ce08 /backend/src | |
| parent | 44606b2c510bb327982f60506fc0c968a51b6e80 (diff) | |
add profile page to navbar
Diffstat (limited to 'backend/src')
| -rw-r--r-- | backend/src/routes/user.ts | 3 |
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 |
