fix gather stats

This commit is contained in:
Daniël 2024-06-09 15:17:34 +02:00
parent 9e1bde7475
commit 3dd000116e

View file

@ -17,7 +17,8 @@ app.get("/", async (req, res) => {
? require("./engines/s3.engine") ? require("./engines/s3.engine")
: require("./engines/local.engine"); : require("./engines/local.engine");
const { uploads, size } = await engine.gatherStatistics(); const { gatherStatistics } = engine;
const { uploads, size } = await gatherStatistics();
res.render("index", { res.render("index", {
totalUploads: uploads, totalUploads: uploads,
totalSize: size.toFixed(2), totalSize: size.toFixed(2),