add relocate from violations-last-combined-cases to match-list
This commit is contained in:
@@ -146,7 +146,7 @@ export async function fetchViolationStats() {
|
||||
}
|
||||
}
|
||||
|
||||
export async function getFileViolations(fileId: string, page: number, status?: string) {
|
||||
export async function getFileViolations(fileId: string, page: number, status?: string, violationId?: string) {
|
||||
const token = await getSessionData('token');
|
||||
|
||||
try {
|
||||
@@ -159,9 +159,11 @@ export async function getFileViolations(fileId: string, page: number, status?: s
|
||||
file_id: fileId,
|
||||
page: page,
|
||||
size: 5,
|
||||
sort_direction: "desc",
|
||||
sort_direction: 'desc',
|
||||
token: token,
|
||||
status: status
|
||||
status: status,
|
||||
...(violationId && { action: 'getByViolationId' }),
|
||||
...(violationId && { violation_id: violationId })
|
||||
}
|
||||
}),
|
||||
headers: {
|
||||
@@ -362,6 +364,7 @@ export async function createComplaint(
|
||||
}
|
||||
|
||||
export async function fetchComplainInfo(id: number) {
|
||||
const token = await getSessionData('token');
|
||||
|
||||
try {
|
||||
const response = await fetch(`${API_BASE_URL}/api/v1/data`, {
|
||||
@@ -371,7 +374,8 @@ export async function fetchComplainInfo(id: number) {
|
||||
msg_id: 30013,
|
||||
message_body: {
|
||||
action: 'get_by_violation',
|
||||
violation_id: id
|
||||
violation_id: id,
|
||||
token
|
||||
}
|
||||
}),
|
||||
headers: {
|
||||
|
||||
Reference in New Issue
Block a user