website refactor
This commit is contained in:
@@ -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> {
|
||||
|
||||
Reference in New Issue
Block a user