Added stats & SQL order by on get points

This commit is contained in:
2024-10-16 09:35:52 +02:00
parent 8bde354b71
commit 60a7570ca2
7 changed files with 137 additions and 7 deletions
+1 -1
View File
@@ -37,7 +37,7 @@ export const GET = async (req: NextRequest) => {
}
const { rows } = await pool.query(
`SELECT * FROM "point" WHERE "userid"=$1;`,
`SELECT * FROM "point" WHERE "userid"=$1 ORDER BY createdat DESC;`,
[userID]
);