diff options
Diffstat (limited to 'backend')
| -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 |
