order reports descending
All checks were successful
delpoy / build-and-deploy (push) Successful in 57s

This commit is contained in:
bytedream 2024-01-10 23:55:56 +01:00
parent 6d9f3c41aa
commit 977905c390

View File

@ -59,7 +59,7 @@ export const POST = (async ({ request, cookies }) => {
{ model: Admin, as: 'auditor' },
{ model: StrikeReason, as: 'strike_reason' }
],
order: ['created_at'],
order: [['created_at', 'DESC']],
offset: data.from || 0,
limit: data.limit || 100
});