change FinalSummary numbers

This commit is contained in:
smanylov
2026-05-20 11:47:34 +07:00
parent af87bfc7b6
commit 348a5398d0
3 changed files with 5 additions and 38 deletions
-35
View File
@@ -127,41 +127,6 @@ export async function getViolationFilesArray(props: {
}
}
/* статистика нурешений */
export async function fetchViolationStats() {
const token = await getSessionData('token');
try {
const response = await fetch(`${API_BASE_URL}/api/v1/data`, {
method: 'POST',
body: JSON.stringify({
version: 1,
msg_id: 30010,
message_body: {
token: token
}
}),
headers: {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
});
if (response.ok) {
let parsed = await response.json();
if (parsed) {
return parsed;
} else {
throw null;
}
} else {
throw (`${response.status}`);
}
} catch (error) {
return null
}
}
export async function getFileMatches(fileId: string, page: number, status?: string, violationId?: string) {
const token = await getSessionData('token');