website refactor

This commit is contained in:
2026-01-17 22:55:03 +01:00
parent 64d9e7fd16
commit 69d4cce7f1
64 changed files with 1146 additions and 1014 deletions

View File

@@ -37,7 +37,7 @@ export class RaceResultsService implements Service {
const res = await this.getRaceResultsDetail(raceId);
if (res.isErr()) throw new Error((res as any).error.message);
const data = (res as any).value;
return new RaceResultsDetailViewModel({ ...data, currentUserId: (currentUserId === undefined || currentUserId === null) ? '' : currentUserId }, {} as any);
return new RaceResultsDetailViewModel(data, (currentUserId === undefined || currentUserId === null) ? '' : currentUserId);
}
async importResults(raceId: string, input: any): Promise<any> {