mirror of
https://gitlab.com/megazordpobeda/DataRush.git
synced 2026-05-23 13:17:10 +00:00
results modal
This commit is contained in:
@@ -14,7 +14,7 @@ export const getCompetition = async (id: string) => {
|
||||
};
|
||||
|
||||
export const getCompetitionResults = async (id: string) => {
|
||||
return await userFetch<CompetitionResult>(`/competitions/${id}/results`);
|
||||
return await userFetch<CompetitionResult[]>(`/competitions/${id}/results`);
|
||||
}
|
||||
|
||||
export const startCompetition = async (competitionId: string) => {
|
||||
|
||||
@@ -28,4 +28,5 @@ export enum CompetitionParticipationType {
|
||||
export interface CompetitionResult {
|
||||
task_name: string;
|
||||
result: number;
|
||||
max_points: number;
|
||||
}
|
||||
Reference in New Issue
Block a user