fix: order urls by desc
This commit is contained in:
parent
78135aac02
commit
7dc036c6e4
1 changed files with 3 additions and 0 deletions
|
@ -21,6 +21,9 @@ async function handler(req: NextApiReq, res: NextApiRes, user: UserExtended) {
|
|||
where: {
|
||||
userId: user.id,
|
||||
},
|
||||
orderBy: {
|
||||
created_at: 'desc',
|
||||
},
|
||||
select: {
|
||||
created_at: true,
|
||||
id: true,
|
||||
|
|
Loading…
Add table
Reference in a new issue