summaryrefslogtreecommitdiff
path: root/src/server/api/endpoints/stats.ts
diff options
context:
space:
mode:
authorsyuilo <Syuilotan@yahoo.co.jp>2020-03-07 01:04:36 +0900
committersyuilo <Syuilotan@yahoo.co.jp>2020-03-07 01:04:36 +0900
commit1947835c5152b7cc9a23bb1a5da0caa953e9d660 (patch)
tree9d6e91f2a3ce6023b3c782c0fa0b650cdfbd2310 /src/server/api/endpoints/stats.ts
parentRefactor (diff)
downloadsharkey-1947835c5152b7cc9a23bb1a5da0caa953e9d660.tar.gz
sharkey-1947835c5152b7cc9a23bb1a5da0caa953e9d660.tar.bz2
sharkey-1947835c5152b7cc9a23bb1a5da0caa953e9d660.zip
Resolve #6137
Diffstat (limited to 'src/server/api/endpoints/stats.ts')
-rw-r--r--src/server/api/endpoints/stats.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/server/api/endpoints/stats.ts b/src/server/api/endpoints/stats.ts
index 5bc224450b..a6ee240a89 100644
--- a/src/server/api/endpoints/stats.ts
+++ b/src/server/api/endpoints/stats.ts
@@ -60,9 +60,9 @@ export default define(meta, async () => {
Notes.count({ where: { userHost: null }, cache: 3600000 }),
Users.count({ cache: 3600000 }),
Users.count({ where: { host: null }, cache: 3600000 }),
- federationChart.getChart('hour', 1).then(chart => chart.instance.total[0]),
- driveChart.getChart('hour', 1).then(chart => chart.local.totalSize[0]),
- driveChart.getChart('hour', 1).then(chart => chart.remote.totalSize[0]),
+ federationChart.getChart('hour', 1, 0).then(chart => chart.instance.total[0]),
+ driveChart.getChart('hour', 1, 0).then(chart => chart.local.totalSize[0]),
+ driveChart.getChart('hour', 1, 0).then(chart => chart.remote.totalSize[0]),
]);
return {