fix: add limit parameter to fetchMetric API call to prevent large response sizes

Co-authored-by: Copilot <copilot@github.com>
This commit is contained in:
2026-04-22 23:04:15 +08:00
co-authored by Copilot
parent 4c40ea96e3
commit 0196505179
@@ -174,7 +174,9 @@ const fetchMetric = async <TMetricKey extends FuryMetricKey>(
}
try {
const response = await furyApi.get<FuryApiItem[]>(config.path, { params })
const response = await furyApi.get<FuryApiItem[]>(config.path, {
params: { ...params, limit: 1000 },
})
if (response.data && response.data.length > 0) {
allItems.push(...response.data)
}