diff --git a/src/store.ts b/src/store.ts index 3e4a84d..a106acf 100644 --- a/src/store.ts +++ b/src/store.ts @@ -488,7 +488,7 @@ export function startFilesWatch() { if (filesWatchInterval) return filesWatchInterval = setInterval(async () => { try { - const result = await apiCall('get_files', { args: { pageSize: 500 } }) +const result = await apiCall('get_files', { pageSize: 500 }) const newFiles = Array.isArray(result) ? result : [] // Check for new files @@ -586,7 +586,7 @@ export async function ensureFiles() { } _filesLoading = true try { - const result = await apiCall('get_files', { args: { pageSize: 500 } }) + const result = await apiCall('get_files', { pageSize: 500 }) // API returns { success: true, total: number, data: File[] } filesCache.value = Array.isArray(result?.data) ? result.data : (Array.isArray(result) ? result : []) } catch (e) {