fix(activitylog): remove export limit and fix search function [BE-12270] (#1232)

release/2.33
Oscar Zhou 2025-09-19 14:45:14 +12:00 committed by GitHub
parent 68b9fef3f0
commit 19e1cc2fbd
3 changed files with 3 additions and 3 deletions

View File

@ -25,7 +25,7 @@ export function ActivityLogsView() {
limit: tableState.pageSize,
sortBy: getSortType(tableState.sortBy?.id),
sortDesc: tableState.sortBy?.desc,
search: tableState.search,
keyword: tableState.search,
...(range
? {
after: seconds(range?.start?.valueOf()),

View File

@ -20,7 +20,7 @@ export interface Query {
limit: number;
sortBy?: SortKey;
sortDesc?: boolean;
search: string;
keyword: string;
after?: number;
before?: number;
}

View File

@ -14,7 +14,7 @@ export function useExportMutation() {
async function exportActivityLogs(query: Omit<Query, 'limit'>) {
try {
const { data, headers } = await axios.get<Blob>('/useractivity/logs.csv', {
params: { ...query, limit: 2000 },
params: { ...query, limit: 0 },
responseType: 'blob',
headers: {
'Content-type': 'text/csv',