refactor(log): remove legacy log deletion endpoint and associated types
This commit is contained in:
@@ -19,7 +19,6 @@ For commercial licensing, please contact support@quantumnous.com
|
||||
import { api } from '@/lib/api'
|
||||
import type {
|
||||
ConfirmPaymentComplianceResponse,
|
||||
DeleteLogsResponse,
|
||||
FetchUpstreamRatiosRequest,
|
||||
LogCleanupTask,
|
||||
SystemOptionsResponse,
|
||||
@@ -48,13 +47,6 @@ export async function confirmPaymentCompliance() {
|
||||
return res.data
|
||||
}
|
||||
|
||||
export async function deleteLogsBefore(targetTimestamp: number) {
|
||||
const res = await api.delete<DeleteLogsResponse>('/api/log/', {
|
||||
params: { target_timestamp: targetTimestamp },
|
||||
})
|
||||
return res.data
|
||||
}
|
||||
|
||||
export async function startLogCleanupTask(targetTimestamp: number) {
|
||||
const res = await api.post<SystemTaskResponse<LogCleanupTask>>(
|
||||
'/api/system-task/log-cleanup',
|
||||
|
||||
@@ -50,12 +50,6 @@ export type ConfirmPaymentComplianceResponse = {
|
||||
}
|
||||
}
|
||||
|
||||
export type DeleteLogsResponse = {
|
||||
success: boolean
|
||||
message: string
|
||||
data?: number
|
||||
}
|
||||
|
||||
export type SystemTaskStatus = 'pending' | 'running' | 'succeeded' | 'failed'
|
||||
|
||||
export type SystemTask<
|
||||
|
||||
Reference in New Issue
Block a user