.
This commit is contained in:
1 parent
b38cc03a71
commit
1fd37f992b
6 files changed
+184
-17
No files matched your search
@@ -34,6 +34,7 @@ import type {
|
||||
MeResponse,
|
||||
RiotQueueGroup,
|
||||
RiotRankFilter,
|
||||
RebuildLegacyMatchesResponse,
|
||||
TournamentCodeBulkUploadResponse,
|
||||
TournamentCodeListResponse,
|
||||
TournamentCodeState,
|
||||
@@ -619,6 +620,16 @@ export function useBulkDeleteLegacyMatches(communityId = DEFAULT_COMMUNITY_ID) {
|
||||
});
|
||||
}
|
||||
|
||||
export function useRebuildLegacyMatches(communityId = DEFAULT_COMMUNITY_ID) {
|
||||
return useMutation({
|
||||
mutationFn: () =>
|
||||
apiFetch<RebuildLegacyMatchesResponse>(
|
||||
`/communities/${communityId}/legacy-matches/rebuild`,
|
||||
{ method: 'POST' },
|
||||
),
|
||||
});
|
||||
}
|
||||
|
||||
export function useMe() {
|
||||
const authUserId = useAuthUserId();
|
||||
const { accounts, inProgress, instance } = useMsal();
|
||||
|
||||
@@ -704,6 +704,14 @@ export interface LegacyMatchListResponse {
|
||||
nextCursor: number | null;
|
||||
}
|
||||
|
||||
export interface RebuildLegacyMatchesResponse {
|
||||
scanned: number;
|
||||
rebuilt: number;
|
||||
normalizedTitles: number;
|
||||
skippedMissingRaw: number;
|
||||
skippedNoKnownParticipants: number;
|
||||
}
|
||||
|
||||
export type ApiRiotJobPriority = 'high' | 'low';
|
||||
export type ApiRiotJobState = 'queued' | 'processing' | 'completed' | 'failed';
|
||||
|
||||
|
||||
Reference in new issue
Block a user