Racepicks: Sort fetched raceresults
This commit is contained in:
@ -47,7 +47,7 @@ export const load: PageServerLoad = async ({ fetch, locals }) => {
|
|||||||
|
|
||||||
const fetch_raceresults = async (): Promise<RaceResult[]> => {
|
const fetch_raceresults = async (): Promise<RaceResult[]> => {
|
||||||
// Don't expand races/pxxs/dnfs since we already fetched those
|
// Don't expand races/pxxs/dnfs since we already fetched those
|
||||||
const raceresults: RaceResult[] = await locals.pb.collection("raceresults").getFullList();
|
const raceresults: RaceResult[] = await locals.pb.collection("raceresultsdesc").getFullList();
|
||||||
|
|
||||||
return raceresults;
|
return raceresults;
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user