update useFileViolations

This commit is contained in:
smanylov
2026-03-27 16:45:58 +07:00
parent 022943d2af
commit f4a0222e0e
4 changed files with 7 additions and 14 deletions
+3 -2
View File
@@ -147,7 +147,7 @@ export async function fetchViolationStats() {
}
}
export async function getFileViolations(fileId: string, page: number) {
export async function getFileViolations(fileId: string, page: number, status?: string) {
const token = await getSessionData('token');
try {
@@ -161,7 +161,8 @@ export async function getFileViolations(fileId: string, page: number) {
page: page,
size: 5,
sort_direction: "desc",
token: token
token: token,
status: status
}
}),
headers: {