fix: invalid dataset data clear (#3927)

* fix: collection list count

* fix: collection list count

* fix: invalid dataset data clear

* update ts

* perf: cron clear invalid data

* perf: init

* perf: clear invalid code

* update init

* perf: clear invalid code

* perf: clear invalid code

* perf: init count

* batch init

* batch init

* batch init

* batch init

* add comment

* perf: init

* fix: api proxy type
This commit is contained in:
Archer
2025-02-28 17:49:20 +08:00
committed by GitHub
parent ac4255ea0c
commit cf0aaa1091
13 changed files with 286 additions and 96 deletions

View File

@@ -154,7 +154,7 @@ export const deleteChannel = (id: number) => DELETE(`/channel/${id}`);
export const getChannelLog = (params: {
channel?: string;
model_name?: string;
status?: 'all' | 'success' | 'error';
code_type?: 'all' | 'success' | 'error';
start_timestamp: number;
end_timestamp: number;
offset: number;
@@ -164,11 +164,13 @@ export const getChannelLog = (params: {
logs: ChannelLogListItemType[];
total: number;
}>(`/logs/search`, {
...params,
channel: params.channel,
model_name: params.model_name,
code_type: params.code_type,
start_timestamp: params.start_timestamp,
end_timestamp: params.end_timestamp,
p: Math.floor(params.offset / params.pageSize) + 1,
per_page: params.pageSize,
offset: undefined,
pageSize: undefined
per_page: params.pageSize
}).then((res) => {
return {
list: res.logs,