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