fix: time entries sort by

This commit is contained in:
Nicola Zambello 2023-03-01 01:36:56 +01:00
parent 985e205232
commit 1a57580b6e
Signed by: nzambello
GPG key ID: 56E4A92C2C1E50BA

View file

@ -59,7 +59,7 @@ export async function loader({ request }: LoaderArgs) {
const size = url.searchParams.get('size') const size = url.searchParams.get('size')
? parseInt(url.searchParams.get('size')!, 10) ? parseInt(url.searchParams.get('size')!, 10)
: 25; : 25;
const orderBy = url.searchParams.get('orderBy') || 'createdAt'; const orderBy = url.searchParams.get('orderBy') || 'startTime';
const order = url.searchParams.get('order') || 'desc'; const order = url.searchParams.get('order') || 'desc';
return json({ return json({