✨ Added stats & SQL order by on get points
This commit is contained in:
@@ -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