aboutsummaryrefslogtreecommitdiffstats
path: root/src/web
diff options
context:
space:
mode:
authorJP Dillingham <jp@dillingham.me>2026-07-05 21:22:38 -0500
committerJP Dillingham <jp@dillingham.me>2026-07-05 21:22:38 -0500
commitaa86e4c3e67a4b9ae591325b3e4d2a6d9c31f77b (patch)
tree02fcc126d103d6c9074e75921612f45b9b111b5e /src/web
parent5013c18b240d9e45c15c001cf208a2c4f1db6277 (diff)
downloadslskd-aa86e4c3e67a4b9ae591325b3e4d2a6d9c31f77b.tar.gz
use buckets instead of intervals
Diffstat (limited to 'src/web')
-rw-r--r--src/web/src/lib/reports.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/web/src/lib/reports.js b/src/web/src/lib/reports.js
index 464c37e5..17c6d214 100644
--- a/src/web/src/lib/reports.js
+++ b/src/web/src/lib/reports.js
@@ -20,7 +20,7 @@ export const getSummary = async ({
export const getHistogram = async ({
start,
end,
- interval,
+ buckets,
direction,
username = null,
} = {}) => {
@@ -28,7 +28,7 @@ export const getHistogram = async ({
if (start) parameters.append('start', start.toISOString());
if (end) parameters.append('end', end.toISOString());
- if (interval) parameters.append('interval', interval);
+ if (buckets) parameters.append('buckets', buckets);
if (direction) parameters.append('direction', direction);
if (username) parameters.append('username', username);