mirror of
https://github.com/furyhawk/home_stack.git
synced 2026-07-21 02:06:47 +00:00
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:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user