✨ Added stats & SQL order by on get points
This commit is contained in:
1 parent
8bde354b71
commit
60a7570ca2
7 files changed
+137
-7
No files matched your search
@@ -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]
|
||||
);
|
||||
|
||||
|
||||
Reference in new issue
Block a user